Skip to content

Instantly share code, notes, and snippets.

@robsonvn
Last active May 11, 2017 01:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robsonvn/9a8e74487573f25bd83b59aac328bf6d to your computer and use it in GitHub Desktop.
Save robsonvn/9a8e74487573f25bd83b59aac328bf6d to your computer and use it in GitHub Desktop.
apt-get update
apt-get --no-install-recommends -y install build-essential pkg-config erlang libicu-dev libmozjs185-dev libcurl4-openssl-dev
erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell
wget http://www-us.apache.org/dist/couchdb/source/2.0.0/apache-couchdb-2.0.0.tar.gz
tar -xvzf apache-couchdb-2.0.0.tar.gz
cd apache-couchdb-2.0.0/
./configure
make release
find rel/couchdb -type d -exec chmod 0770 {} \;
chmod 0644 rel/couchdb/etc/*
rel/couchdb/bin/couchdb 2>/dev/null &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment