Haxe 3 Release Notes
The Haxe 3.0 RC2 is now available for download :
- On Windows : Automatic Installer or use the haxe-3.0.0-rc2-win.zip
- On OSX 10.6+ : haxe-3.0.0-rc2-osx.tar.gz (requires Neko 2.0.0). Please read Manual Installation instructions below.
- On Linux : Build From Sources using
https://haxe.googlecode.com/svn/tags/v3.0.0-rc2checkout
The goal of the RC is to ensure that the final release is bug-free. Please report any issue you might have upgrading or running your Haxe 2.x code to 3.0 on the Haxe Discussion Group.
Before starting upgrading your code, please read the following documentation :
Build from Sources
In order to build from sources, make sure you have some packages installed :
sudo apt-get install libzip-dev ocaml subversion
You can get Haxe Sources using the following SVN command :
svn co http://haxe.googlecode.com/svn/trunk haxe
Then go into the haxe directory and simply compile :
cd haxe make clean all sudo make install
Build Neko
NekoVM is used by some Haxe utilities. While it's not strictly required to run Haxe, it's highly recommended to install it as well.
Get the sources from NekoVM SVN :
svn co http://nekovm.googlecode.com/svn/trunk neko
Install a few packages necessary to compile neko :
sudo apt-get install libgc-dev libzip-dev libpcre3-dev # if you want to get mod_neko and mod_tora sudo apt-get install apache2-prefork-dev
Then compile the sources :
cd neko make clean all sudo make install
Build on OSX
The steps to build on OSX are pretty similar than on Linux. Please make first sure you have the following installed:
- Install XCode 4
- If you don't have "make" in commandline, open XCode, create an empty project then go to Preferences/Downloads/Components and install CommandLineTools
- Install MacPorts
Then run the following commands :
sudo port install boehmgc pcre ocaml
If you get an error "sh: /usr/bin/gcc-4.2: No such file or directory" try :
sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
For Neko, use the following commands :
make os=osx sudo make os=osx install
Manual Installation
On OSX/Linux, you can run the following commands to install Haxe after extracting the TGZ :
rm -f /usr/bin/haxe cp haxe /usr/bin/haxe rm -rf /usr/lib/haxe mkdir /usr/lib/haxe cp -r std /usr/lib/haxe mkdir /usr/lib/haxe/lib chmod 777 /usr/lib/haxe/lib cp std/tools/haxelib/haxelib.sh /usr/bin/haxelib chmod +x /usr/bin/haxelib
And for Neko :
# use libneko.so for Linux cp libneko.dylib /usr/lib cp neko nekoc nekotools nekoml nekoml.std /usr/bin mkdir /usr/lib/neko cp *.ndll /usr/lib/neko