Installing on RHEL and CentOS
When installing Riak on CentOS or Red Hat you can install from source or from our custom .rpm package.
Notes
- CentOS enables SE Linux by default and you may need to disable SE Linux if you encounter errors.
- Erlang OTP R15B01 and Riak Enterprise 1.2 do not work on CentOS 5.2, but do work on CentOS 5.3 and newer.
Installing From Our Custom .rpm Package
For Centos 5 / RHEL 5
You can either install using yum (recommended),
sudo yum install http://yum.basho.com/gpg/basho-release-5-1.noarch.rpm sudo yum install riak
…or install the rpm package manually.
For Centos 6 / RHEL 6
You can either install using yum (recommended),
sudo yum install http://yum.basho.com/gpg/basho-release-6-1.noarch.rpm sudo yum install riak
…or install the rpm package manually.
Installing From Source
Riak requires Erlang R15B01. Note: don't use Erlang version R15B02 or R15B03, for the moment, as it causes an error with riak-admin status commands.
If you do not have Erlang already installed, see our guide to Installing Erlang. Don’t worry, it’s easy!
Building from source will require the following packages:
- gcc
- gcc-c++
- glibc-devel
- make
You can install these with yum:
sudo yum install gcc gcc-c++ glibc-devel make git
Now we can download and install Riak:
You will now have a fresh build of Riak in the rel/riak directory.
Next Steps?
From here you might want to check out:
- Post Installation: for checking Riak health after installation
- The Riak Fast Track: a guide for setting up a 3 node cluster and exploring Riak’s main features.
- Basic Cluster Setup: a guide that will show you how to go from one node to bigger than Google!
