Corey Quillen
Corey Quillen

Reputation: 1576

How to install CouchDB on Mac OS X? (Docs not helping)

I tried installing CouchDB 1.6 via Homebrew per the instructions on the official CouchDB docs at docs.couchdb.org, but I am having no success. First, I tried the native application and that worked but apparently that version does not support CORS. It has been a frustrating experience, so any help will be greatly appreciated.

Here is the error that I am getting when trying to ping CouchDB:

curl: (7) Failed to connect to 127.0.0.1 port 5984: Connection refused

I followed the installation guide here: http://docs.couchdb.org/en/1.6.1/install/mac.html

These were the terminal commands I used:

open /Applications/Installers/Xcode\ Tools/XcodeTools.mpkg
--> File not found (this step is listed as optional, so I moved on)

brew update
brew doctor

brew install autoconf
brew install autoconf-archive
brew install automake
brew install libtool
brew install erlang
brew install icu4c
brew install spidermonkey
brew install curl

brew link icu4c
--> Requires --force option which can cause installations to fail
    (I did not do the --force option)
brew link erlang
brew install couchdb
--> To test CouchDB run: curl http://127.0.0.1:5984/

curl http://127.0.0.1:5984/
--> curl: (7) Failed to connect to 127.0.0.1 port 5984: Connection refused

Mac Info:

MacBook Pro (Retina, 13-inch, Late 2013)
OS X Yosemite
Version 10.10.3

Upvotes: 1

Views: 1785

Answers (1)

Dominic Barnes
Dominic Barnes

Reputation: 28429

My guess is that it is installed, but just not running. Can you try running couchdb -d?

That should start it up in the background, if you need it to run on every startup, you can continue following the instructions for "Running as a Daemon"

Upvotes: 6

Related Questions