Building from sources: Haxe, nekovm, Haxe tools

You are viewing an old version of this entry, click here to see latest version.

Building the Haxe toolset


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.
  • 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.

Build Haxe on Windows

Haxe on Linux


Building Haxe on Ubuntu / Debian
Build Haxe on Mac OS X
Creating Mac OSX distributions

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.

Build nekovm on linux

Configure mod_neko
( 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/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.

building haxelib from source

version #5525, modified 2009-02-15 11:54:37 by baurel