The Haxe platform provides you with several tools:
- The neko VM: A fast and lightweight virtual machine (also available as a module to run in Apache server)
- The Haxe tools: Additional tools like haxelib to manage libraries and haxedoc to generate nice documentations.
The haxe compiler is written in the OCaml language. Therefore the first step is to install OCaml.
If this is done we can compile Haxe:
- with make :
Since haxe version 2.09 you can use make to build the compiler from source. Instructions can be found here.
- or with ocaml install.ml :
Download install.ml and simply run
ocaml install.mlfrom command line. After that you'll get a
./bin/haxebinary. You also need the files and directories inside the
./stddirectory which contain the
.hxstandard Haxe library and other platform specific files.
The source files are located at : http://code.google.com/p/haxe
Build Haxe on Windows
Building Haxe on Ubuntu / Debian
Build Haxe on Mac OS X
Creating Mac OSX distributions
The neko VM is written in C and provides extensions for running neko code on the Apache webserver or with a MySQL database.
( How to configure Apache to run neko programs)
Two additional tools can be compiled :
haxedoc, the Haxe documentation generator and
haxelib, the Haxe library manager. You can compile these by going into the directory
haxe/std/tools/haxelib and then running the corresponding
.hxml file. It will compile a binary executable file. You need to have Neko installed first.