Building from sources: Haxe, nekovm, Haxe tools
The Haxe platform provides you with several tools:
- The Haxe compiler: A compiler that targets the following platforms: JavaScript, Flash, PHP, Neko.
- The neko VM: A fast and lightweight virtual machine to run server side code.
- 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 build OCaml.
If this is done we can compile Haxe, by downloading install.ml, install OCaml, 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.
Build Haxe on Windows
Build Haxe on Linux
Build Haxe on Mac OS X
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.
mod_neko
( Info about the neko extension for the Apache Webserver)
3. 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/haxedoc and 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.