Installing on Mac OS X
The following steps are known to work with Mac OS X 10.5 and 10.6. You can install from source or download a precompiled tarball.
Install Types
- Precompiled Tarballs
- Homebrew
- Source
From Precompiled Tarballs
To run Riak from our precompiled tarball, run these commands for the appropriate platform:
64-bit
curl -O http://s3.amazonaws.com/downloads.basho.com/riak/1.3/1.3.1/osx/10.6/riak-1.3.1-osx-x86_64.tar.gz tar xzvf riak-1.3.1-osx-x86_64.tar.gz
32-bit
curl -O http://s3.amazonaws.com/downloads.basho.com/riak/1.3/1.3.1/osx/10.6/riak-1.3.1-osx-i386.tar.gz tar xzvf riak-1.3.1-osx-i386.tar.gz
After the release is untarred you will be able to cd into the riak directory and execute bin/riak start to start the Riak node.
Homebrew
Installing with Homebrew is easy:
brew install riak
Homebrew will install Erlang if you don't have it already.
From Source
You must have Xcode tools installed from the CD that came with your Mac or from Apple's Developer website.
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 Installing Erlang. Don't worry, it's easy!
Next, download and unpack the source distribution.
wget http://downloads.basho.com.s3-website-us-east-1.amazonaws.com/riak/1.3/1.3.0/riak-1.3.0.tar.gz tar zxvf riak-1.3.1.tar.gz cd riak-1.3.1 make rel
If you get errors when building about “incompatible architecture”, please verify that you built Erlang with the same architecture as your system (Snow Leopard and higher - 64bit, everything else - 32bit).
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 4 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!
