Saturday, December 24, 2011

Ubuntu 11.10 - Riak Installation

The beta version of the book Seven Databases in Seven Weeks was updated from using Riak 0.14.1 to 1.0.2. Getting everything set up correctly on Ubuntu was a bit of a pain at first. This was until I realized that the version of Erlang referenced in the book incorrect. The book references that R13B04 was needed , but in fact R14B03 is needed.

Another big problem that I encountered was installing Riak from the source archive. After decompressing and running make all I was getting an error referring to git. Not too sure why make was expecting to be run in an initialized repository. In case others have had installation problems below are the steps to set up Riak 1.0.2 on Ubuntu 11.04.


Installing Erlang
sudo apt-get install curl build-essential libncurses5-dev openssl libssl-dev fop xsltproc
curl -O https://raw.github.com/spawngrid/kerl/master/kerl
chmod a+x kerl
./kerl build R14B03 r14b03
sudo ./kerl install r14b03 /opt/erlang/r14b03 . /opt/erlang/r14b03/activate


Installing Riak
sudo apt-get install build-essential libc6-dev-i386
git clone https://github.com/basho/riak.git riak
cd riak
git checkout riak-1.0.2
make all
make devrel

0 comments:

Post a Comment