Skip to content

Instantly share code, notes, and snippets.

@feliperazeek
Created March 13, 2011 22:19
Show Gist options
  • Save feliperazeek/868494 to your computer and use it in GitHub Desktop.
Save feliperazeek/868494 to your computer and use it in GitHub Desktop.
CouchDB Install (fixing annoying library dependencies) by the awesome people from WebFaction http://bit.ly/eDs2IM
# For more info please visit http://bit.ly/eDs2IM
mkdir ~/src
# erlang
cd ~/src
wget http://erlang.org/download/otp_src_R13B02-1.tar.gz
tar zxf otp_src_R13B02-1.tar.gz
cd otp_src_R13B02-1
./configure --prefix=$HOME
make
make install
# icu
cd ~/src
wget http://download.icu-project.org/files/icu4c/4.2.1/icu4c-4_2_1-src.tgz
tar zxf icu4c-4_2_1-src.tgz
cd icu/source
./configure --prefix=$HOME
make
make install
# spidermonkey
cd ~/src
wget http://ftp.mozilla.org/pub/mozilla.org/js/js-1.8.0-rc1.tar.gz
tar zxf js-1.8.0-rc1.tar.gz
cd js/src
make BUILD_OPT=1 -f Makefile.ref
mkdir -p $HOME/include/smjs
cp *.{h,tbl} $HOME/include/smjs/
cd Linux_All_OPT.OBJ
cp *.h $HOME/include/smjs/
cp js $HOME/bin/
cp libjs.so $HOME/lib/
# couchdb
cd ~/src
wget http://www.takeyellow.com/apachemirror/couchdb/0.9.1/apache-couchdb-0.9.1.tar.gz
tar zxf apache-couchdb-0.9.1.tar.gz
cd apache-couchdb-0.9.1
export LD_INCLUDE_PATH=$HOME/include/smjs:$HOME/include/layout:$HOME/include/unicode:$LD_INCLUDE_PATH
export LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH
./configure --prefix=$HOME --with-js-lib=$HOME/lib/ --with-js-include=$HOME/include/smjs --with-erlang=$HOME/lib/erlang/usr/include/
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment