Skip to content

Instantly share code, notes, and snippets.

@DjPale
Created November 30, 2015 12:58
Show Gist options
  • Select an option

  • Save DjPale/fe7f62c3b9e860ae4555 to your computer and use it in GitHub Desktop.

Select an option

Save DjPale/fe7f62c3b9e860ae4555 to your computer and use it in GitHub Desktop.
Compile Neko 2.0.0 and Haxe 3.2.0 on RPI - Notes only - may not run if followed blindly :)
cd
mkdir dev
## Compile neko 2.0.0
sudo apt-get install libgc-dev
sudo nano /etc/apt/source.list
# append the following lines
deb http://www.cl.cam.ac.uk/~lpw25/ocaml-rpi/ wheezy main
deb-src http://www.cl.cam.ac.uk/~lpw25/ocaml-rpi/ wheezy main
sudo apt-get update
sudo apt-get install ocaml ocaml-native-compilers ocaml-compiler-libs
sudo apt-get install libpcre3-dev
wget http://nekovm.org/media/neko-2.0.0.tar.gz
tar -xvzf neko-2.0.0.tar.gz
cd neko-2.0.0
make
sudo make install
sudo ldconfig
neko
## Compile Haxe 3.2.0
git clone --branch 3.2.0 --recursive git://github.com/HaxeFoundation/haxe.git
cd haxe
git submodule init
git submodule update
make
add to ~/.profile or /etc/environment
export HAXE_LIBRARY_PATH=/usr/local/haxe/std:.
export HAXE_HOME=/usr/local/haxe
export NEKOPATH=/usr/local/lib/neko
echo /usr/lib/haxelib/ >~/.haxelib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment