This Ant-based bootstrapper allows you to set up an up-to-date, bleeding edge Haxe and Neko development environment on your computer, by executing a single, dependency-less script. The tool will download the latest nightly-build of Haxe, as well as the latest release of the Neko VM, and set those up inside the directory where the bootstrapper lies.
Your user environment will also be properly configured, creating the necessary variables and enabling system-wide access to Haxe and Neko.
It will also configure the directory that haxelib
(the library management tool that comes with Haxe) uses to store your libraries, allowing you to easily upgrade your Haxe installation by simply re-running the script.
The script is designed to work on Windows and Mac OS X.
It was tested on the following platforms:
- Windows 7
- MacOS X 10.6
- MacOS X 10.7 (uses 10.6 builds)
You need Apache Ant to run the script. This tool can be freely downloaded, or installed automatically by some OS (sudo apt-get install ant
). The full installation guide is provided by Apache here. Also, Ant relies on Java to run, which means you'll need Java runtimes as well.
Once you have Ant properly set-up, simply clone this repository where you want to install your Haxe environment, and run:
ant -f bootstrapper.xml
And that's it, you're done. You might need to start a new command-line prompt or terminal to access the Haxe and Neko binaries, because the environment variables defined by the script might not be propagated to the terminal you used to run the script itself.
On MacOS X, you might be prompted for a password. This is your sudo
password, and it is asked so the Bootstrapper can create symbolic links of Haxe in your /usr/bin
directory.
You can configure your proxy settings by making a copy of the local.properties.sample
file, named local.properties
. Just edit that file, fill proxy informations, and the bootstrapper shall connect through the proxy to download Haxe and Neko.
The bootstrapper does the following operations, in that order:
- It will check that your operating system is supported.
- It will download the latest nightly build of Haxe (as found in the official nightly builds page) and extract it in an
haxe
directory created where the script is being run. - It will set the
HAXEPATH
andHAXE_LIBRARY_PATH
environment variables to point to that directory and to thestd
directory it contains, respectively, usingsetx
on Windows, andlaunchctl setenv
on MacOS X. - It will download the latest release of NekoVM (as found on the download page of NekoVM) and extract it in a
neko
directory created where the script is being run. - It will set the
NEKOPATH
environment variable to point to that directory, using the same tools as before. - On MacOS X, it will create a symbolic link on
/etc/lib/libneko.dylib
, pointing to thelibneko.dylib
file in the directory where Neko was uncompressed. - It will build
haxelib
andhaxedoc
from their sources, and copy the executables to thehaxe
directory. - It will configure
haxelib
to use alibs
directory created at the same level as thehaxe
andneko
directories to store the libraries you'll download. - It'll add all Haxe and Neko executables (namely
haxe
,haxelib
,haxedoc
,neko
,nekoc
,nekoml
andnekotools
) to your binaries environment. That is being done by appending%HAXEPATH%;%NEKOPATH%
to your (user)PATH
environment variable on Windows, and by creating symlinks for all those files in/usr/bin
on MacOS X.