Manual Installation, and SVN.
Manual Install
Windows user can refer to a more detailed version at Installing Haxe on Windows.
1. Download and extract one of the below:
- for Windows : haxe-2.10-win.zip
- for OSX : haxe-2.10-osx.tar.gz
- for Linux : haxe-2.10-linux.tar.gz
- Older versions
2. Download and extract the Neko binaries from NekoVM website
3. Set environment variables:
- HAXE_LIBRARY_PATH to the absolute path of the std folder of Haxe. eg. D:\haxe-2.10-win\std:. (the ' :. ' part is important)
- HAXEPATH to the absolute path of the extracted folder of Haxe. eg. D:\haxe-2.10-win
- NEKOPATH to the absolute path of the extracted folder of Neko. eg. D:\neko-1.8.2-win
- Add %HAXEPATH%;%NEKOPATH%; to the PATH environment variable of your operating system.
To check if the haxe executable can be found, open Command Prompt (Terminal) and enter
haxeIt should print out the info of Haxe:
Haxe Compiler 2.10 - (c)2005-2012 Motion-Twin Usage : haxe.exe -main <class> [-swf|-js|-neko|-php|-cpp|-cs|-java|-as3] <output> [options] Options : -cp <path> : add a directory to find source files (The rest of the options are omitted for brevity.)
4. If you have this error when trying to run neko
neko: error while loading shared libraries: libneko.so: cannot open shared object file: No such file or directory
And you're running Ubuntu Linux (I don't know about other distros, but the idea is the same). Follow these steps:
- Go to /etc/ld.so.conf.d/ directory
- Create a new file named neko.conf and write the full path to your neko installation, for example /home/foo/bar/neko. Save it.
- Run sudo ldconfig
Building from source
- If you want to build Haxe from source, read the build instructions
- Source code : http://code.google.com/p/haxe (official)
- Github mirror : https://github.com/aduros-mirrors/haxe (contact: Aduros)
- Github mirror : https://github.com/haxe-mirrors/haxe (contact: Daniel Cassidy) [incl. dependencies; more detailed info here]
SVN Builds
If you want to enjoy Haxe's freshly added features and bug fixes, you can download the newest builds for each platform (offered by haxe users).
New builds are immediately available for download after each svn commit (unless the frequency info below states otherwise).
- Instructions for installing a nightly build:
- Download the latest build (zip or tar) from one of the servers listed below.
- Navigate to the directory where you previously installed haxe with the automatic installer
- Replace the haxe executable and the std folder with the ones from the zip or tar.
- Available servers:
- linux64
- automated: yes
- frequency: every revision
- executable shows revision nr: no
- contact: Cauê
Please allow some seconds for the directory list to be created. Check the date to ensure that the build for your OS is up-to-date. You can use the XML available here to automate checking for new builds.
- windows + linux32
- automated: yes
- frequency: every (waking) hour
- executable shows revision nr: yes
- contact: Jan_Flanders
- OSX does not have a nightly service because the providers Leopard platform was discontinued. Hopefully someone else will resume a service.
Linux installation using the NME installation script
On linux machines, Haxe and Neko can also been installed using Joshua Granick's installation script for Haxe NME. The script can be downloaded from the HaxeNME download page by selecting the Linux download link. Untar the file
tar -zxvf NME-3.x.x-Beta-Linux.tar.gzand run the extracted shellscript using bash:
bash nme-installer.shThis will install the latest versions of Haxe and Neko together with HXCPP, NME and some other libraries.
Packages
APT repository
Using the version from the official repositories
Official version
Haxe is available from the official Ubuntu repositories, but this version can be out of date. To get a more recent version install a ppa.
To install haxe, run from command line:
sudo apt-get install haxe
Using a Personal Package Archive
PPA version
The following commands will add the PPA, update your list to include this PPA, and then install the latest version of haxe:
sudo add-apt-repository ppa:eyecreate/haxe sudo apt-get update sudo apt-get install haxe
Haxelib
If this is the first time you've installed Haxe, you will also need to setup Haxelib.
Execute the following commands and choose the default option when prompted.
sudo mkdir -p /usr/lib/haxe/lib sudo haxelib setup
RPM Specification
Haxe and NekoVM are available as RPM Specifications for Fedora, OpenSUSE, etc. Using these you can build a package for Haxe and NekoVM from source. Please go here for more information.
AUR (ArchLinux User Repository)
Haxe is available from the ArchLinux User Repository.
haxe package details
yaourt -S haxeIf you prefer more recent version, please try this:
haxe-svn package details
yaourt -S haxe-svn
If you need Haxe v2, please try this package instead.
haxe2 package details
yaourt -S haxe2
version #17860, modified 2013-03-03 19:46:14 by aaulia