Installing couchdb on RHEL4
Tuesday, October 23rd, 20071. Install erlang
Ignore the instructions here which are misleading and outdated.
cd ~/src mkdir erlang cd erlang wget http://www.erlang.org/download/otp_src_R11B-5.tar.gz tar xzvf otp_src_R11B-5.tar.gz cd otp_src_R11B-5 ./configure && make && sudo make install ## ignore warnings about jinterface and odbc
2. Solve dependencies. You’ll need EPEL
yum install icu libicu-devel
3. install couchdb
cd ~/src svn checkout http://couchdb.googlecode.com/svn/trunk/ couchdb cd couchdb ./bootstrap && ./configure && make && sudo make install
You may need to change one line in configure.ac: You don’t need to do this in latest builds (last tested 0.73a)
38 39 |
--FLAGS="-I${ERLANG_HEADERS_DIRECTORY} -I/opt/local/lib/erlang/usr/include/" ++FLAGS="-I${ERLANG_HEADERS_DIRECTORY} -I/usr/local/lib/erlang/usr/include/" |
or if you don’t want to do that, this nasty hack will paper over the problem: (unnecessary in recent builds)
ln -s /usr/local /opt/local
4. start couchdb
sudo couchdb couch 0.7.0a548 (LogLevel=info) CouchDB is starting. CouchDB has started. Time to relax.
UPDATED to cover recent builds.