Skip to content

Instantly share code, notes, and snippets.

@miebach
Forked from lanius/install_riak.sh
Created April 8, 2012 22:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miebach/2340161 to your computer and use it in GitHub Desktop.
Save miebach/2340161 to your computer and use it in GitHub Desktop.
Install riak 1.1.2 and R14B03 on a minimal Ubuntu 10.04 LTS server
# Install riak-0.14.2rc8 to Ubuntu 10.04 LTS 32 bit
# make sure you have a compatible build system and the ncurses and openssl
# development libraries installed, also git and curl:
sudo aptitude install build-essential libncurses5-dev openssl libssl-dev git-core curl -y
# download, build and install Erlang:
ERLANG=/opt/erlang
sudo mkdir -p /opt
sudo chmod a+w /opt
mkdir -p $ERLANG
cd $ERLANG
wget http://erlang.org/download/otp_src_R14B03.tar.gz
tar zxvf otp_src_R14B03.tar.gz
cd otp_src_R14B03
./configure && make && sudo make install
RIAK=/opt/riak
SRC=/opt/src
RIAK_TGZ=riak-1.1.2.tar.gz
mkdir -p $SRC
sudo chmod a+w $SRC
cd $SRC
wget http://downloads.basho.com/riak/CURRENT/$RIAK_TGZ
tar -xzf $RIAK_TGZ
mv riak-1.1.2 $RIAK
cd $RIAK
make all
# see http://wiki.basho.com/Building-a-Development-Environment.html for the next steps
# start riak:
# cd ~/dev/riak/current/rel
# sudo riak/bin/riak start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment