We have a new wiki. The migration is not 100% complete. You can help out by moving pages across. This wiki will exist for as long as there are pages left.

The official documentation has moved to http://docs.couchdb.org — The transition is not 100% complete, but http://docs.couchdb.org should be seen as having the latest info. In some cases, the wiki still has some more or older info on certain topics inside CouchDB.

You need to be added to the ContributorsGroup to edit the wiki. But don't worry! Just email any Mailing List or grab us on IRC and let us know your user name.

Using the port system

Use the official precompiled package

$ sudo pkg_add apache-couchdb

or compile it yourself using the port:

$ cd /usr/ports/databases/apache-couchdb/
$ sudo make install

Alternatives (not needed anymore due to port)

This worked for me on a brand new install of OpenBSD 4.4

# pre-requisite: spidermonkey
cd /usr/ports/lang/spidermonkey
make install
make clean
# prerequisite: icu
cd /usr/ports/textproc/icu4c
make install
make clean
# pre-requisite: erlang
pkg_add erlang
# yes, but i would prefer the latest erlang
pkg_add wget
pkg_add gmake
mkdir /usr/tools
cd /usr/tools
mkdir erlang
cd erlang
wget http://www.erlang.org/download/otp_src_R12B-5.tar.gz
tar zxf otp_src_R12B-5.tar.gz
mkdir otp_R12B-5
cd otp_src_R12B-5
export LANG=C
./configure --help
./configure --prefix=/usr/tools/erlang/otp_R12B-5 --with-ssl
gmake install
cd /usr/tools
mkdir couchdb
cd couchdb
# the following url is a copy/paste from what
# http://www.apache.org/dyn/closer.cgi?path=/incubator/couchdb/0.8.1-incubating/apache-couchdb-0.8.1-incubating.tar.gz
# gave as a link
wget http://mir2.ovh.net/ftp.apache.org/dist/incubator/couchdb/0.8.1-incubating/apache-couchdb-0.8.1-incubating.tar.gz
tar zxf apache-couchdb-0.8.1-incubating.tar.gz
mkdir couchdb-0.8.1
cd apache-couchdb-0.8.1-incubating
./configure --prefix=/usr/tools/couchdb/couchdb-0.8.1
gmake install
cd ../couchdb-0.8.1/bin
cd /tmp
wget localhost:5984
cat index.html

You could also use this ports tested on -current and 4.3 :


Don't forget to make update-plist to reflect latest changes.

Installing_on_OpenBSD (last edited 2011-11-23 14:31:24 by JanLehnardt)