Created
July 4, 2009 15:38
-
-
Save brentp/140607 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mostly from:http://haxe.org/doc/build/haxe_ubuntu_build | |
sudo apt-get install ocaml camlp5 cvs zlib1g-dev | |
wget http://haxe.org/file/install.ml | |
sudo ocaml install.ml | |
# clean old install | |
sudo rm -rf /usr/local/haxe | |
sudo rm -rf /usr/local/bin/haxe* | |
# install haxe in /usr/local | |
sudo mkdir /usr/local/haxe | |
sudo mkdir /usr/local/haxe/bin | |
sudo chmod +r bin/ | |
# install haxe in /usr/local | |
sudo cp bin/* /usr/local/haxe/bin | |
sudo cp -r haxe/std /usr/local/haxe | |
sudo ln -s /usr/local/haxe/bin/haxe /usr/local/bin/haxe | |
# | |
sudo grep "HAXE_LIBRARY_PATH" /etc/environment || echo "export HAXE_LIBRARY_PATH=/usr/local/haxe/std:." >> /etc/environment | |
# add to ~/.bash_profile or ~/.bash_rc | |
export HAXE_LIBRARY_PATH=/usr/local/haxe/std:. # the ':.' part is important | |
export HAXE_HOME=/usr/local/haxe | |
PATH=$PATH:$HAXE_LIBRARY_PATH:$HAXE_HOME/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment