-
Install couchdb dependencies:
sudo apt-get install build-essential
sudo apt-get install erlang-base-hipe
sudo apt-get install erlang-dev
sudo apt-get install erlang-manpages
sudo apt-get install erlang-eunit
sudo apt-get install erlang-nox
sudo apt-get install libicu-dev
sudo apt-get install libmozjs-dev
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install pkg-config
sudo apt-get install -y libmozjs185-dev libicu-dev libcurl4-gnutls-dev libtool
sudo apt-get install -y g++ -
Download and extract http://mirror.sdunix.com/apache/couchdb/source/1.5.0/apache-couchdb-1.5.0.tar.gz
-
cd apache-couchdb-1.5.0/
-
execute:
./configure && makesudo make install
sudo rm /etc/logrotate.d/couchdb /etc/init.d/couchdb
sudo ln -s /usr/local/etc/logrotate.d/couchdb /etc/logrotate.d/couchdb
sudo ln -s /usr/local/etc/init.d/couchdb /etc/init.d
sudo update-rc.d couchdb defaults -
Create missing folders:
mkdir tmp/log
mkdir tmp/run
mkdir etc/couchdb/default.d/ -
cd geocouch
-
git chekout couchdb1.3.x
-
export COUCH_SRC=<couch-source-path>/src/couchdb
-
make
-
cp <geocouch-path>/etc/couchdb/default.d/geocouch.ini <couchdb-source-path>/etc/couchdb/default.d/
-
Futon tests:
cp <geocouch>/share/www/script/test/* <couchdb-source-path>/share/www/script/test/
Add the test to <couchdb-source-path>/share/www/script/couch_tests.jsloadTest("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");
loadTest("spatial_merging.js");
loadTest("spatial_offsets.js"); -
Run couchdb with geocouch
export ERL_FLAGS="-pa <geocouch-path>/ebin"
ERL_FLAGS="-pa <geocouch-path>/ebin" <couchdb-source-path>/utils/run