title_supertext | title | description | project | project_version | menu | toc | aliases | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Installing on |
Mac OS X |
riak_kv |
2.2.3 |
|
true |
|
The following steps are known to work with Mac OS X 10.8, 10.9 (Mavericks), and Yosemite. You can install from source or download a precompiled tarball.
ulimit
on OS XOS X gives you a very small limit on open file handles, so even with a backend that uses very few file handles, it's possible to run out. See Open Files Limit for more information about changing the limit.
To run Riak from our precompiled tarball, run these commands for the appropriate platform:
curl -O http://s3.amazonaws.com/downloads.basho.com/riak/2.2/2.2.3/osx/10.8/riak-2.2.3-OSX-x86_64.tar.gz
tar xzvf riak-2.2.3-osx-x86_64.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.
You must have Xcode tools installed from Apple's Developer website.
{{% note title="Note on Clang" %}} Riak will not compile with Clang. Please make sure that your default C/C++ compiler is GCC. {{% /note %}}
Riak requires Erlang R16B02+.
If you do not have Erlang already installed, see Installing Erlang.
Next, download and unpack the source distribution.
curl -O http://s3.amazonaws.com/downloads.basho.com/riak/2.2/2.2.3/riak-2.2.3.tar.gz
tar zxvf riak-2.2.3.tar.gz
cd riak-2.2.3
make rel
If you receive errors when building about "incompatible architecture," please verify that you built Erlang with the same architecture as your system (Snow Leopard and higher: 64bit).
Now that Riak is installed, check out Verifying a Riak Installation.