Thursday, October 20, 2011

Upgrading couchDB in OSX

While trying to use couchDB filtered replication I had some problems as documented in gist.

I had to upgrade then couchDB to a non released version. Here are the steps I followed.

Delete all files from previous installations:
$ sudo find /usr/local -name couchdb | sudo xargs rm -fR

Install ICU from
$ tar xvzf icu4c-4_8_1-src.tgz 
$ cd icu/source/
$ ./runConfigureICU MacOSX --with-library-bits=64 --disable-samples --enable-static # if this fails for you try: ./configure --enable-64bit-libs
$ make
$ sudo make install

Install Spidermonkey
$ curl -O
$ tar xvzf js185-1.0.0.tar.gz 
$ cd js-1.8.5/js/src
$ make
$ sudo make install

Then install latest Erlang:
$ curl -O
$ tar xvzf otp_src_R14B04.tar.gz 
$ cd otp_src_R14B04
$ ./configure --enable-smp-support --enable-dynamic-ssl-lib --enable-kernel-poll --enable-darwin-64bit
$ make
$ sudo make install

Then checkout the needed version. I tried from git ( first but I had several problems with autoconf and beyond (.configure was not available so I needed to go with automake -a; autoconf; autoheader) so I then built from svn:
$ svn co couchdb1.1.x
$ cd couchdb1.1.x
$ ./bootstrap
$ ./configure
$ make
$ sudo make install
$ sudo couchdb


Unknown said...

the reason configure was missing is that you need to run ./bootstrap first in any of the source checkouts.


Nestor Urquiza said...

Thanks Dave,

I see the SVN repo has been updated and now configure is not there so I tried autoconf after bootstrap and it did work as expected.

I have updated now the steps here.


Unknown said...

Also the homebrew recipe should handle pretty much all of this for you now - wait a couple of days for the next release to land!