Compile error

Jared Morrow jared at
Wed Jun 6 09:49:54 EDT 2012


In 1.1.2 we unfortunately had a bug where the source for leveldb was not fetched properly when making the source distribution.   This has been fixed and will not cause problems in the next release.  To fix your issue, you will need to get the original source of leveldb from github.   To make things easier, the file in question that fetches the source should be changed to fetch the source via http.

Unpack the riak source as you already did then:

$ cd deps/eleveldb

And then make the following changes to 'c_src/':

--- c_src/	2012-04-27 22:06:31.000000000 -0600
+++ c_src/	2012-04-27 22:07:49.000000000 -0600
@@ -37,7 +37,7 @@
         export LD_LIBRARY_PATH="$BASEDIR/system/lib:$LD_LIBRARY_PATH"
         if [ ! -d leveldb ]; then
-            git clone git://
+            git clone
             (cd leveldb && git checkout $LEVELDB_VSN)
Then return to the top-level source directory for Riak and run 'make' and the leveldb source will be fetched over http.
If you need a truly offline source distribution that doesn't do any source fetching, you can do the steps in `c_src/` by hand and tar up the entire riak directory again to distribute.

Sorry for the bad behavior of the build on that release.


On Jun 6, 2012, at 3:58 AM, Theo Bot wrote:

> Hi
> I'm try-ing to compile riak from source on a 32-bit centos 6.2 system without direct internet access. All required tools are installed, however, somewehere I get the following message:
> make[2]: Leaving directory `/home/theob/basho/riak-1.1.2/deps/eleveldb/c_src/snappy-1.0.4'
> make[1]: Leaving directory `/home/theob/basho/riak-1.1.2/deps/eleveldb/c_src/snappy-1.0.4'
>[0:]: errno=Connection refused
> fatal: unable to connect a socket (Connection refused)
> Initialized empty Git repository in /home/theob/basho/riak-1.1.2/deps/eleveldb/c_src/leveldb/.git/
> ERROR: Command [compile] failed!
> make: *** [compile] Error 1
> Somehow it's try-ing to get something from github. Can this be disabled or someting?
> -- 
> Regards
> Theo Bot
> LinkedIn:
> _______________________________________________
> riak-users mailing list
> riak-users at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the riak-users mailing list