# Get the latest package info
sudo apt-get update
# Fetch files for managing vendor source
sudo apt-get install software-properties-common -y
# Fetch latest couchdb
sudo add-apt-repository ppa:couchdb/stable -y
# Get the latest package info since adding couchdb PPA
sudo apt-get update
# Install CouchDB and Futon
sudo apt-get install couchdb -y
Verify couchdb
couchdb -V
Run couchdb
first if the following does not work.
curl localhost:5984
# Response
{"couchdb":"Welcome","uuid":"9ce319188f99712da0d9fe56c7dd02a5","version":"1.6.1","vendor":{"name":"Ubuntu","version":"14.04"}}
brew install couchdb
The following dependencies will be installed.
readline, nspr, spidermonkey, icu4c, unixodbc, jpeg, libpng, libtiff, wxmac, erlang
Verify couchdb
couchdb -V
Run couchdb
then the following:
curl localhost:5984
# Response
{"couchdb":"Welcome","uuid":"f7c3031493ec7653cae1042df1351a58","version":"1.6.1","vendor":{"version":"1.6.1-1","name":"Homebrew"}}
curl -I localhost:5984/_utils/
# Response
HTTP/1.1 200 OK
Server: CouchDB/1.6.1 (Erlang OTP/17)
Access Futon in the web browser using http://localhost:5984/_utils/
👍