Created
June 4, 2011 13:10
-
-
Save hofmeister/1007893 to your computer and use it in GitHub Desktop.
Ubuntu 10.4 install couchdb 1.0.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#install dependencies | |
sudo apt-get build-dep couchdb | |
sudo apt-get install xulrunner-1.9.2-dev libicu-dev libcurl4-gnutls-dev libtool | |
#configure xulrunner | |
sudo echo "/usr/lib/xulrunner-1.9.2.17 | |
/usr/lib/xulrunner-devel-1.9.2.17" > /etc/ld.so.conf.d/xulrunner.conf | |
# get couchdb 1.0.2 | |
wget "http://mirrors.rackhosting.com/apache//couchdb/1.0.2/apache-couchdb-1.0.2.tar.gz" | |
tar -xzvf apache-couchdb-1.0.2.tar.gz | |
cd apache-couchdb-1.0.2 | |
# get patch for xulrunner stuff (http://permalink.gmane.org/gmane.comp.db.couchdb.user/13627) | |
wget https://issues.apache.org/jira/secure/attachment/12472248/mozjs2.0.patch | |
patch -p1 < mozjs2.0.patch | |
# configure, build and install | |
./configure --prefix=/opt/couchdb --with-js-lib=/usr/lib/xulrunner-devel-1.9.2.17/lib --with-js-include=/usr/lib/xulrunner-devel-1.9.2.17/include | |
make | |
sudo make install | |
#link stuff | |
sudo ln -s /opt/couchdb/bin/couchdb /usr/bin/couchdb | |
sudo ln -s /opt/couchdb/bin/couchjs /usr/bin/couchjs | |
sudo ln -s /opt/couchdb/etc/couchdb /etc/couchdb | |
sudo cp /opt/couchdb/etc/init.d/couchdb /etc/init.d/couchdb | |
sudo cp /opt/couchdb/etc/logrotate.d/couchdb /etc/logrotate.d/couchdb | |
sudo /etc/init.d/couchdb start |
Very nice, worked well thx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should simply be downloaded and run on a Ubuntu 10.4 system - and end up with a running couchdb 1.0.2.