git clone --recursive https://github.com/HaxeFoundation/haxe.git
Alternatively, source .zip archives or tarballs can be obtained from the GitHub Haxe release overview. However, the git submodules are not included, so you will have to manually place the source code of submodules into appropreate sub-folders.
The dependencies can be easily installed by Homebrew. In fact, if you only want to use the latest development branch of Haxe, without modifying the source, simply run:
brew install haxe --HEAD
brew reinstall haxe --HEAD to upgrade in the future.
If you want to start hacking the Haxe compiler, it is better to clone manually and use the Makefile:
brew cask install xquartz
brew install ocaml camlp4 pcre neko
make make install
sudo apt-get neko.
make make install
mingw64-i686-pcre(used by Haxe). You might need to switch "View" in top-right corner to "Not Installed" to see it in the list.
opam install camlp4- Install merlin with
opam install merlin
C:\OCaml32\bin- runtime dlls:
C:\OCaml32\usr\i686-w64-mingw32\sys-root\mingw\bin- ocaml bin:
C:\OCaml32\home\nadako\.opam\4.02.3+mingw32c\bin- flexlink bin:
opamitself running through cmd/powershell because it needs some more environment that's inited in
.bashrc, but I think installing opam packages from within Cygwin terminal is acceptable.
make ADD_REVISION=1 -f Makefile.win
Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4227d3, this helps: http://hdrlab.org.nz/articles/windows-development/make-interrupt-exception-caught-code-0xc00000fd-addr-0x4217b/ TL;DR: put the environment variables at the start of your PATH, not at the end.
pkg install ocaml ocaml-camlp4 gmake git
cd ~ && git clone --recursive https://github.com/HaxeFoundation/haxe.git
cd haxe && gmake
su -followed by
cd /home/username/haxe && gmake install
If you want to update, it's usually enough to just recompile the compiler by updating your checkout using
git pull followed by issueing the command