Reading Seven Languages in Seven Weeks. Io looks interesting, so I thought I'd install it. Turns out there's no Debian/Ubuntu package for it, so you just have to download the source and compile it.
The instructions in README.txt are pretty good, but they don't tell you that you need to have cmake and g++ installed. You'll also get a whole mess of warnings if you don't have a bunch of development libraries installed.
Here's my complete installation process. (I installed to /opt/io):
# Install all the packages you're going to need
sudo apt-get install cmake g++ libssl-dev libgmp3-dev libffi-dev libncurses-dev libfreetype6-dev libglfw-dev libpng12-dev libtiff-dev libjpeg-dev libpcre3-dev libxml2 libxml2-dev
# Create the directory you're installing it to
sudo mkdir -p /opt/io
unzip stevedekorte-io-2010.06.06-329-gf641230.zip
cd stevedekorte-io-f641230/
mkdir build && cd build
time cmake -DCMAKE_INSTALL_PREFIX=/opt/io ..
time sudo make install
# Add the lib directory to your linker (ld) config
echo "/opt/io/lib/" | sudo tee /etc/ld.so.conf.d/Io.conf
sudo ldconfig
Then you can add
/opt/io/bin
to you path, or just invoke /opt/io/bin/io
directly.
No comments:
Post a Comment