Haxe 3 Release Notes

Haxe 3.0 is now available for download :

Before starting upgrading your code, please read the following documentation :

Git Builds

If you want to enjoy Haxe's freshly added features and bug fixes, you can download the newest builds for each platform (offered by haxe users).
New builds are immediately available for download after each git commit (unless the frequency info below states otherwise).

  • Instructions for installing a nightly build:
    • Download the latest build (zip or tar) from one of the servers listed below.
    • Navigate to the directory where you previously installed haxe with the automatic installer
    • Replace the haxe executable and the std folder with the ones from the zip or tar.
  • Available servers:

Build from Source


Ubuntu


Haxe


In order to build Haxe from source, make sure you have some packages installed :
sudo apt-get install libzip-dev ocaml git camlp4

You can get the Haxe source code using the following Git command :

git clone --recursive https://github.com/HaxeFoundation/haxe.git haxe

Then go into the Haxe directory and simply compile :

cd haxe
make clean all
sudo make install

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 Git :

git clone https://github.com/HaxeFoundation/neko.git 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

OS X


Haxe


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

Neko


For Neko, use the following commands :

make os=osx
sudo make os=osx install

FreeBSD


Haxe


In order to build Haxe from source you may need to install some packages:
pkg install ocaml ocaml-camlp5 gmake git

Download the Haxe source code from GitHub using the following Git command:

git clone --recursive https://github.com/HaxeFoundation/haxe.git Haxe

Change to the newly created Haxe directory and compile with gmake :

cd Haxe
gmake clean all
gmake install

Neko


Neko2 can be installed through the FreeBSD ports system:

Install the package with the following command:

pkg install neko

For more information about the port visit the following link: http://www.freshports.org/lang/neko/

Notes:
- It is assumed that the user is logged in as the root user.
- If you don't want to use packages, you can also install the software with the corresponding port.

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
version #20069, modified 2014-04-20 18:23:50 by FIZZER