Since I had to do this few times in the last couple of days, I'll try
to sum it up in least steps:
# apt-get install ocaml camlp4 ocaml-findlib zlib1g-dev git gc-dev \
pcre-dev libgc-dev gcc-multilib g++-multilib
Maybe you will need camlp4-dev. If this is not the name of the package
in Debian, try
$ apt-cache search caml
and see if there's something similar to it. gcc-* packages may be also
called gcc-c++ or something similar. You would need these to compile
C++ code from Haxe, but it's better to have them uprfornt.
$ git clone
https://github.com/HaxeFoundation/neko.git
$ cd ./neko && make && sudo make install
$ git clone --recursive
https://github.com/HaxeFoundation/haxe.git
$ cd ./haxe && make && make tools && sudo make install
$ haxelib setup
$ haxelib selfupdate
Some important points: you need Neko to run haxelib as well as a bunch
of other utilities.
`tools' target in Makefile of Haxe project builds haxelib
$ export HAXE_LIBRARY_PATH=/usr/lib/haxe/std:.
$ export HAXE_HOME=/usr/lib/haxe
These are the defaults as of now, but you may want to see what is the
prefix in the Haxe Makefile / change it, if you want Haxe installed in
different place. (also save these to your shell profile).
There was one more environment variable... I think NEKOPATH... but I
can't remember what it was for.
Also note that you may need to append the location of neko.so to the
LD_LIBRARY_PATH (so that C++ compiler would know where to find it).
Also remember to update the shared objects database after compiling
Neko (so that ld would know the libraries are actually there):
# updatedb
Best,
Oleg