Nicolas Cannasse informed the haxe-list that This might occur with all
neko bootable binaries (nekoc, nekoml, haxelib, haxedoc...) if they are
strip'ed. And thus they should not be.
--
haxelib Uncaught exception: Module not found
https://bugs.launchpad.net/bugs/160417
You received this bug
The problem is that haxelib was not actually installed. The haxe package
just installed neko in haxelib's place.
I resolved this rebuilding the package and replacing haxelib command
with the one the build generated.
This way:
$ sudo apt-get install fakeroot
$ sudo apt-get build-dep haxe
$ sudo