Installing on RHEL4 x86_64
-
install erlang
wget http://www.erlang.org/download/otp_src_R12B-5.tar.gz tar xzvf otp_src_R12B-5.tar.gz cd otp_src_R12B-5 ./configure && make && sudo make install cd ..
-
install other dependencies. you'll need EPEL and/or RPMForge
yum install icu libicu-devel js js-devel
-
install spidermonkey ( step may be optional if you can get js/js-devel as above)
Also see InstallingSpiderMonkey
wget <a href="http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz">http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz</a> tar xvzf <a href="js-1.7.0.tar.gz">js-1.7.0.tar.gz</a> cd js/src/ make -f Makefile.ref # (add BUILD_OPT=1 for non-debug build?) JS_DIST=/usr/local/spidermonkey make -f Makefile.ref export cd .. cd ..
-
install couchdb
svn checkout http://svn.apache.org/repos/asf/couchdb/trunk couchdb cd couchdb ./bootstrap ./configure --with-js-lib=/usr/local/spidermonkey/lib64 --with-js-include=/usr/local/spidermonkey/include make && make install