- OS X Mountain Lion (10.8.1)
- XCode 4.5.1 with "Command Line Tools" installed in Preferences > Downloads > Components
- MacPorts Mountain Lion installer.
Install dependencies: (you might want a grab a coffee)
sudo port install boehmgc pcre mysql5 ocamlCheck out the sources, I put mine in /ws/sdk but that's just me.
mkdir -p /ws/sdk
cd /ws/sdk
svn checkout http://nekovm.googlecode.com/svn/trunk/ neko
svn checkout http://haxe.googlecode.com/svn/trunk/ haxeYou can optionally check out a particular version using one of the available tags:
svn co http://haxe.googlecode.com/svn/tags/v2-10 haxeBuild and install:
cd /ws/sdk/neko
make os=osx
sudo make install os=osxDuring compilation you will be prompted for the location of some header files. You can skip Apache 1.3 unless you need to support that. When prompted for Carbon.h enter the path:
/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/Add the following to your shell profile (.profile, .bash_profile or similar)
export NEKOPATH=/usr/local/lib/neko
export PATH=$NEKOPATH:$PATHTest it worked:
source ~/.profile
nekoBuild binaries:
cd /ws/sdk/haxe
makeInstall:
sudo rm -rf /usr/lib/haxe
sudo mkdir /usr/lib/haxe
sudo cp -r haxe haxedoc haxelib std doc /usr/lib/haxe