CouchDB on Mavericks with Homebrew

Looks like there's a few hoops to jump through to get CouchDB going on OS X at the moment.

Here's a few things to try:

If you get the following:

Error: spidermonkey dependency readline was built with the following  
C++ standard library: libstdc++ (from clang)

This is incompatible with the standard library being used  
to build spidermonkey: libc++ (from clang)  

Try: brew reinstall readline --env=std and brew reinstall spidermonkey --env=std

You might need to add the --env=std to unixodbc too if that plays up.

For a missing crypto library

init terminating in do_boot (no_crypto)  
configure: error: Could not find the Erlang crypto library.  


xcode-select --install  
brew reinstall erlang  
brew install couchdb  

So far, these steps have worked for me.

And lastly for reference, these are the start messages you get just after a succesful install of CouchDB with Homebrew:

To have launchd start couchdb at login:  
    ln -sfv /usr/local/opt/couchdb/*.plist ~/Library/LaunchAgents
Then to load couchdb now:  
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.couchdb.plist
Or, if you don't want/need launchctl, you can just run: