First Io requires the cmake build system so make sure that is available.
$ sudo apt-get install cmake
Next download and extract the source code.
$ wget --no-check-certificate
http://github.com/stevedekorte/io/zipball/master -O io-lang.zip
$ unzip io-lang.zip $ cd stevedekorte-io-[hash]
Io provides a build script, however it is setup to install the language to /usr/local. Since I want it to go in $HOME/local you just need to modify that file. Here is a quick one liner:
$ sed -i -e 's/^INSTALL_PREFIX="\/usr\/local/INSTALL_PREFIX=
"$HOME\/local/' build.shNow build and install.
$ ./build.sh $ ./build.sh install
Since we are installing into a location our OS doesn’t really know about, we need to configure a few paths.
$ vim ~/.bashrc export PATH="${HOME}/local/bin:${PATH}" export LD_LIBRARY_PATH="${HOME}/local/lib:${LD_LIBRARY_PATH}" # You might want these too export LD_RUN_PATH=$LD_LIBRARY_PATH export CPPFLAGS="-I${HOME}/local/include" export CXXFLAGS=$CPPFLAGS export CFLAGS=$CPPFLAGS export MANPATH="${HOME}/local/share/man:${MANPATH}"
Lastly restart your shell and type ‘io’ and Enjoy!
No comments:
Post a Comment