0

I am trying to install Riak-KV database from source (see instructions ). Installing it requires lots of prerequisites to follow, though they are poorly written on the site (I apologise if you don't agree). The instructions ask me to install erlang (here). Once I write this command: ./configure && make && sudo make install on terminal, it seems it goes on forever. Terminates keeps installing something and never stops.

Is there anything wrong with my command or is there a mistake in the instructions?

My Ubuntu version is 16.04 LTS.

wjandrea
  • 14,109
  • 4
  • 48
  • 98
Jabir
  • 1
  • 2
  • How much time did you wait for it to get done before considering that it goes on forever ? – Shady Programmer Aug 16 '16 at 22:47
  • 10 minutes, and it shows me reminder that I have little memory left in OS. Then I terminated the terminal. – Jabir Aug 16 '16 at 22:50
  • 1
    Excuse me if I'm ignorant, but why are you building Riak KV from source when you could [install a binary](http://docs.basho.com/riak/kv/2.1.4/setup/installing/debian-ubuntu/#installing-with-apt-and-packagecloud)? – wjandrea Aug 16 '16 at 23:18

1 Answers1

0

Consider using kerl to build and manage Basho's Erlang.

This build will take some time, and the output should end up looking something like this:

$ kerl build git https://github.com/basho/otp.git OTP_R16B02_basho10 R16B02-basho10
Checking Erlang/OTP git repository from https://github.com/basho/otp.git...
Building Erlang/OTP R16B02-basho10 from git, please wait...
DOCUMENTATION INFORMATION (See: /home/sutt/.kerl/builds/R16B02-basho10/otp_build_git.log)
 * documentation  : 
 *                  fop is missing.
 *                  Using fakefop to generate placeholder PDF files.

Erlang/OTP R16B02-basho10 from git has been successfully built

Install Erlang R16B02:

$ kerl install R16B02-basho10 ~/.kerl/installs/R16B02-basho10/
Installing Erlang/OTP git (R16B02-basho10) in /home/sutt/.kerl/installs/R16B02-basho10...
You can activate this installation running the following command:
. /home/sutt/.kerl/installs/R16B02-basho10/activate
Later on, you can leave the installation typing:
kerl_deactivate

Activate it, and verify that it is activated:

$ . /home/sutt/.kerl/installs/R16B02-basho10/activate
$ kerl active 
The current active installation is:
/home/sutt/.kerl/installs/R16B02-basho10

Git clone the Riak code:

git clone https://github.com/basho/riak.git
cd riak

Optional: switch to a tag:

git checkout -q tags/riak-2.2.0

With Erlang R16B02-basho10 active you should be able to run make.

You can simply compile:

make

Or you can make an Erlang Release:

make rel

A development release (for testing):

make devrel DEVNODES=$(nproc)

Or a package specific to your OS (.deb):

make package

See if this has better results for you.