Theo,

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/build_deps.sh':

--- c_src/build_deps.sh.orig    2012-04-27 22:06:31.000000000 -0600
+++ c_src/build_deps.sh 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://github.com/basho/leveldb
+            git clone http://github.com/basho/leveldb
             (cd leveldb && git checkout $LEVELDB_VSN)
         fi
 
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/build_deps.sh` by hand and tar up the 
entire riak directory again to distribute.

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

-Jared


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'
> github.com[0: 207.97.227.239]: 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: http://www.linkedin.com/in/theobot
>  
> 
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to