Skip to content

Instantly share code, notes, and snippets.

@kaelzhang
Last active August 29, 2015 13:59
Show Gist options
  • Save kaelzhang/10739024 to your computer and use it in GitHub Desktop.
Save kaelzhang/10739024 to your computer and use it in GitHub Desktop.
Compile and install couchdb 1.5.1 on Centos 6.4
#!/bin/bash
# Please run as root privilege
yum -y install libicu-devel curl-devel ncurses-devel libtool libxslt fop java-1.6.0-openjdk java-1.6.0-openjdk-devel unixODBC unixODBC-devel openssl-devel
# The rpm package on this site lacks of RSA V4 Signature, so we have to compile erlang from source code.
wget https://packages.erlang-solutions.com/erlang/esl-erlang-src/otp_src_R16B03-1.tar.gz
wget http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
wget http://apache.osuosl.org/couchdb/source/1.5.1/apache-couchdb-1.5.1.tar.gz
tar -zxvf otp_src_R16B03-1.tar.gz
cd otp_src_R16B03-1
./configure && make
make install
cd -
tar -zxvf js185-1.0.0.tar.gz
cd js-1.8.5/js/src
./configure && make
make install
cd -
tar -zxvf apache-couchdb-1.5.1.tar.gz
cd apache-couchdb-1.5.1
./configure && make
make install
cd -
adduser --no-create-home couchdb
chown -R couchdb:couchdb /usr/local/var/lib/couchdb /usr/local/var/log/couchdb /usr/local/var/run/couchdb
ln -sf /usr/local/etc/rc.d/couchdb /etc/init.d/couchdb
chkconfig --add couchdb
chkconfig couchdb on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment