The main problem I had was that I did not have all the dependencies needed to install Io and the installation was failing. The dependencies are yajl and libevent
If you've got then installed, you can skip the next steps.
NOTE: You will need to have cmake and make. You can install them running the following commands from the terminal:
sudo apt-get install cmake
sudo apt-get install make
Installing yajl
- Download yajl from here: https://github.com/lloyd/yajl/downloads
- In my case it was: lloyd-yajl-2.0.1-0-gf4b2b1a.zip
- Extract it into a folder.
- Open the terminal and go to the folder you extracted yajl
- Run the following commands
- mkdir build
- cd build
- cmake ..
- sudo make install
For more information, please check:
https://github.com/lloyd/yajl
https://github.com/lloyd/yajl/blob/master/BUILDING
Installing libevent
- Download libevent from here: http://libevent.org/
- In my case it was: libevent-2.0.15-stable.tar.gz
- Extract it into a folder
- Open the terminal and go to the folder you extracted libevent
- Run the following commands
- ./configure
- make
- sudo make install
For more information please check:
http://libevent.org/
Also check the README file inside the .tar.gz for your version
Installing Io language
You can go to the Io language website and download the language or click here to go start downloading it. As there is no Ubuntu package for that, you will be downloading the Io's source code. This will point to Steve Dekorte's version. I ended up downloading Jeremy Tregunna's version. It should work the same. Check each one is the most up-to-date.
- Download the Io version here: https://github.com/jeremytregunna/io/zipball/master
- Extract it into a folder.
- Open the terminal and go to the folder you extracted Io
- Run the following commands:
- mkdir build
- cd build
- cmake ..
- sudo make install
IMPORTANT: When running 'cmake ..', you may get a few errors. Even then, try to run 'sudo make install'. Some libraries may fail to compile because they are OS specific.
For mode information please check:
http://iolanguage.com/
https://github.com/stevedekorte/io
https://github.com/jeremytregunna/io
Updating ld.so.conf
Now we just need to update ld.so.conf so Io can be accessed from anywhere in your computer.
- From the terminal, type the following command: sudo gedit /etc/ld.so.conf
- Add the following line to the file: include /usr/local/lib
- Save and close the file
- From the terminal run the following command: sudo ldconfig
Running Io
That's it. Hopefully now you will be able to open a terminal window and type: io
You should see the Io runtime environment: Io> _
No comments:
Post a Comment