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.  

Try:

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:  
    couchdb

References:
https://github.com/Homebrew/homebrew/issues/23533
https://github.com/Homebrew/homebrew/issues/23332
http://docs.couchdb.org/en/latest/install/mac.html#installation-with-homebrew