Friday, June 5, 2015

RIAK 7 Databases in 7 Weeks

Its 10pm on a Friday night and I'm trying to get started on the second database in this book so far its been frustrating. 

First I had to install Oracle VM Virtual box so I could install Ubuntu 14.04.2 LTS usually not a big deal but something weird happened with my VM and I had to do it twice.   Also spent a lot of time trying to get Ubuntu to run in a none tiny window.  Installing VBOX additions seems to be the secret to that. 

Next I tried downloading the Version of RIAK that was used for the book 1.0.2 awesome I was able to find it.  But on the official Erlang website I could only find newer versions.  Probably won't be an issue except it was.  The newer version of Erlang can't compile the version of RIAK I have.

No problem I'll just download the ready to go version of RIAK and extract the Demo servers needed for the book.  This worked to a point I have RIAK but I can't seem to figure out how to extract the demo servers I need from the 1.0.2 download.

Okay maybe the best thing to do is pull down a more recent version of riak

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

riak$ make rel

Should be on good path now...

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -m64 -Wall -O3 -fPIC -c snappy.cc  -o .libs/snappy.o
./libtool: line 984: c++: command not found






Seems to mean that I need to install g++ hopefully installing that now.  Installing it was the issue now I have to deal with actual compile errors. 

snappy-test.cc: At global scope:
snappy-test.cc:82:15: error: aggregate ‘snappy::rusage snappy::benchmark_start_cpu’ has incomplete type and cannot be defined
 struct rusage benchmark_start_cpu;

to be continued...