Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How To Install CouchDB from Source on a CentOS 6 x64 VPS
1 Heloo :)
2 yum update
3 reboot
4 yum localinstall http://epel.mirror.srv.co.ge/6/i386/epel-release-6-8.noarch.rpm
5 uname -rs
6 yum localinstall http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
7 yum update
8 yum install gcc
9 yum install make
11 yum install autoconf autoconf-archive automake libtool perl-Test-Harness erlang-etap erlang-erts erlang-os_mon erlang-eunit libicu-devel js-devel curl-devel
12 yum -y install wget
13 yum install erlang
14 yum install gcc-c++
15 wget 'http://www.bizdirusa.com/mirrors/apache/couchdb/source/1.5.0/apache-couchdb-1.5.0.tar.gz'
16 tar -zxvf apache-couchdb-1.5.0.tar.gz
17 cd apache-couchdb-1.5.0
18 ./configure --with-erlang=/usr/lib64/erlang/usr/include
19 make
20 make install
21 cd /usr/bin/
22 couchdb
23 sudo adduser --no-create-home couchdb
24 sudo chown -R couchdb:couchdb /usr/local/var/lib/couchdb /usr/local/var/log/couchdb /usr/local/var/run/couchdb
25 sudo ln -sf /usr/local/etc/rc.d/couchdb /etc/init.d/couchdb
26 sudo chkconfig --add couchdb
27 sudo chkconfig couchdb on
28 sudo service couchdb start
29 sudo service couchdb status
30 curl http://localhost:5984
You should see a response like:
{"couchdb":"Welcome","uuid":"b90a51ec5cb14b76f37bb863e30fe3af","version":"1.5.0","vendor":{"name":"The Apache Software Foundation","version":"1.5.0"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.