Building the Haxe toolset
The Haxe platform provides you with several tools:
- The neko VM: A fast and lightweight virtual machine to run server side code.
- The Haxe tools: Additional tools like haxelib to manage libraries and haxedoc to generate nice documentations.
1. The Haxe compiler
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, by downloading install.ml and simply run
ocaml install.ml from the commandline. After that you'll get a
./bin/haxe binary. You also need the files and directories inside the
./std directory which contain the
.hx standard Haxe library and other platform specific files.
2. The neko vm
The neko VM is written in C and provides a few extensions for running neko code on the Apache webserver or with the MySql databases.
( How to configure Apache to run neko programs)
3. The Haxe tools: haxedoc and haxelib
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 by running the corresponding
.hxml file. It will compile a binary executable file. You need Neko to be installed first.