post icon

Updated: Fixing CouchDB (but not MacPorts build) after upgrading to 10.6 (Snow Leopard). Part 1.

Update: smarter people than me figured out what to do to build CouchDB on Snow Leopard. Good enough until macports is in sync.

Somewhat hastily I upgraded to 10.6 and that broke some things with my installed ports. And CouchDB wouldn’t compile – oh the horror! Here’s what I did to fix my port installation and get latest CouchDB in trunk build and run again. And failed…

First, I just renamed /opt to /opt.old to start from fresh after noting that my first attemtp to just rely on existing ports didn’t work. Then:

svn co http://svn.macports.org/repository/macports/trunk/base/
cd base
./configure
make
sudo make install
sudo port -v selfupdate

I already had /opt/local/bin and /opt/local/sbin in my path so port is found immediately. And now when port was working again:

sudo port install spidermonkey
sudo port install icu
sudo port install erlang

And then had dinner. Installing erlang requires a lot of other stuff so prepare for a couple of wanks a long break while computer burns. Returned later with high hopes but no… some f-cker called libsdl doesn’t build. Hopped along to a ticket about it and read all about a patch that remedies this. That took it a bit further but then there were even more problems, with patches on files I didn’t even find.

So screw macports for now! Wait ’til it’s officially supported. I got erlang from the mothership instead and built it as per this instruction.

And now, finally, I could step into my downloaded couchdb source and:

./bootstrap && ./configure
make dev
./utils/run

And saw the so wanted

Apache CouchDB 0.10.0a805490 (LogLevel=info) is starting.

On the output. Hooray! But…

Trace/BPT trap

Dang. And logs are empty. That’s it for today. Off to bed. Still awake, @janl? I’ll continue tomorrow.

No comments yet.

Leave a comment

Leave a Reply