Setting up GeoCouch with CouchDB and Homebrew
Installing CouchDB with Homebrew is pretty straightforward:
brew install couchdb
The instructions for installing GeoCouch are easy to follow as well, but due Homebrew, the files have to be copied to different folders. I also noticed that the URL to clone the repository from is not correct in the README file.
git clone https://github.com/couchbase/geocouch.git cd geocouch git checkout couchdb1.1.x # choose the correct branch for your version
Get CouchDB source
from apache CouchDB and set
COUCH_SRC to the directory containing the source, e.g.:
make in the directory
Copy the configuration file for GeoCouch from
cp etc/couchdb/local.d/geocouch.ini /usr/local/etc/couchdb/local.d/
To make sure your installation is working also copy the Futon tests over (from
cp share/www/script/test/* /usr/local/share/couchdb/www/script/test/
Add the tests to
loadTest("spatial.js"); loadTest("list_spatial.js"); loadTest("etags_spatial.js"); loadTest("multiple_spatial_rows.js"); loadTest("spatial_compaction.js"); loadTest("spatial_design_docs.js"); loadTest("spatial_bugfixes.js");
Follow the remaining instructions in the official README file.