Jason Morrison

Make stuff.

Installing redland-1.0.7 From Source on Ubuntu 7.10

The Ubuntu packages for the Redland RDF libraries seem to have an issue, at least for the Ruby bindings (see Ruby objects to cyclic dependency about the “cyclic include detected” issue), so I installed it from source.

In case I need to do this again (or someone else does), here are the steps I took for installing Redland on Ubuntu 7.10:

  1. Get the GNU MP Bignum library:

sudo apt-get install libgmp3-dev

  1. Make or go to a scratch directory:

cd ~
mkdir redland
cd redland

  1. Get redland 1.0.7 and unpack:
1
2
3
wget http://download.librdf .org/source/redland-1.0.7.tar.gz
tar xvfz redland-1.0.7.tar.gz
cd redland-1.0.7
  1. Build raptor first:
1
2
3
cd raptor
./configure && make && make check && sudo make install
cd ..
  1. Then build rasqal:
1
2
3
cd rasqal
./configure && make && make check && sudo make install
cd ..

Note: If you see “Can’t locate XML/DOM.pm in @INC” during make check, then try this first:

1
sudo apt-get install libxml-dom-perl 
  1. Build redland:

(We are back in the main redland-1.0.7 directory)

./configure && make && make check && sudo make install

  1. Get and build redland-bindings:
1
2
3
4
5
cd ..
wget http://download.librdf.org/source/redland-bindings-1.0.7.1.tar.gz
tar xvfz redland-bindings-1.0.7.1.tar.gz
cd redland-bindings-1.0.7.1
./configure && make && make check && sudo make install
  1. Build the language-specific bindings you would like:
1
2
3
cd ruby
make && make check && sudo make install
cd ..