Dear Wiki user, You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.
The "Installing_on_Debian" page has been changed by DaveCottlehuber: https://wiki.apache.org/couchdb/Installing_on_Debian?action=diff&rev1=6&rev2=7 Comment: update for latest wheezy and expired cloudant keys <<Include(EditTheWiki)>> <<TableOfContents(2)>> + + == Building from Source on Debian Wheezy == + + {{{ + cd /tmp + sudo apt-get install -y lsb-release + echo "deb http://binaries.erlang-solutions.com/debian `lsb_release -cs` contrib" \ + | sudo tee /etc/apt/sources.list.d/erlang-solutions.list + wget -O - http://binaries.erlang-solutions.com/debian/erlang_solutions.asc \ + | sudo apt-key add - + + + echo "deb http://packages.cloudant.com/debian `lsb_release -cs` main" \ + | sudo tee /etc/apt/sources.list.d/cloudant.list + sudo apt-get update -y + + # dependencies for libmozjs etc override outdated cloudant gpg sig + sudo apt-get install -y --force-yes libmozjs185-cloudant libmozjs185-cloudant-dev + sudo apt-get install -y libnspr4 libnspr4-0d libnspr4-dev libcurl4-openssl-dev curl libicu-dev + + # set up couch user + sudo useradd -d /var/lib/couchdb couchdb + sudo mkdir -p /usr/local/{lib,etc}/couchdb /usr/local/var/{lib,log,run}/couchdb /var/lib/couchdb + sudo chown -R couchdb:couchdb /usr/local/{lib,etc}/couchdb /usr/local/var/{lib,log,run}/couchdb + sudo chmod -R g+rw /usr/local/{lib,etc}/couchdb /usr/local/var/{lib,log,run}/couchdb + + # get a tarball near you from + # http://www.apache.org/dyn/closer.cgi?path=/couchdb/source/1.5.0/apache-couchdb-1.5.0.tar.gz + tar xzf apache-couchdb-*.tar.gz + cd apache-couchdb-* + ./configure --prefix=/usr/local --with-js-lib=/usr/lib --with-js-include=/usr/include/mozjs --enable-init + make && sudo make install + # start couch + sudo ln -s /usr/local/etc/init.d/couchdb /etc/init.d/couchdb + sudo /etc/init.d/couchdb start + sudo update-rc.d couchdb defaults + # check it runs + curl http://127.0.0.1:5984/ + }}} == Pre-packaged == @@ -99, +138 @@ pip install sphinx docutils pygments }}} + === Minimal packages === - == rough notes for wheezy 7.0 x64 from dch == + If you need custom erlang versions, use kerl, otherwise {{{apt-get update && apt-get install -y erlang}}} and skip this section. - {{{ + {{ - # use ESL and Cloudant builds to save time - sudo apt-get install -y lsb-release - echo "deb http://binaries.erlang-solutions.com/debian `lsb_release -cs` contrib" | sudo tee /etc/apt/sources.list.d/erlang-solutions.list - wget -O - http://binaries.erlang-solutions.com/debian/erlang_solutions.asc | sudo apt-key add - - - echo "deb http://packages.cloudant.com/debian `lsb_release -cs` main" | sudo tee /etc/apt/sources.list.d/cloudant.list - wget http://packages.cloudant.com/KEYS -O - | sudo apt-key add - - # install erlang pre-reqs - - sudo apt-get update - # build tools sudo aptitude install -y build-essential libtool autoconf automake autoconf-archive pkg-config sudo aptitude install -y build-essential libtool autoconf automake autoconf-archive pkg-config git @@ -126, +155 @@ sudo aptitude install -y help2man python-sphinx texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texinfo }}} - If you need custom erlang versions, use kerl, otherwise {{{apt-get update && apt-get install -y erlang}}} and skip this section. - - === Minimal packages === Run-time minimal packages for CouchDB are:
