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.

Dependancies for CouchDB

In a first time, you need to grab the following slackbuilds to meet Coubhdb's requirements :

Other dependancies are met by slackaware's packages :

curl-config --version

Then, you need to build those packages from the slackbuilds. Slackbuils are made by default for i486 platform; If you have a 64 bits platform, edit the file <package>.Slackbuild and modify ARCH for x86_64.

To build the package, you have to put the source archive file within the slackbuild directory.

tar xzf js.tar.gz
cd js
=> Slackware package /tmp/js-1.8.0_rc1-x86_64-1_SBo.tgz created.

tar xzf icu4c.tar.gz
cd ../icu4c
=> Slackware package /tmp/icu4c-4.2.1-x86_64-1_SBo.tgz created

tar xzf erlang-otp.tar.gz
cd erlang-otp
=> Slackware package /tmp/erlang-otp-13B03-x86_64-1_SBo.tgz created.

Install packages :

nicolas@cassis:/tmp$ sudo installpkg icu4c-4.2.1-x86_64-1_SBo.tgz
Verifying package icu4c-4.2.1-x86_64-1_SBo.tgz.
Installing package icu4c-4.2.1-x86_64-1_SBo.tgz:
# icu4c (International Components for Unicode)
# The International Components for Unicode (ICU) libraries provide
# robust and full-featured Unicode services on a wide variety of
# platforms.
# Homepage: http://www.icu-project.org/
Executing install script for icu4c-4.2.1-x86_64-1_SBo.tgz.
Package icu4c-4.2.1-x86_64-1_SBo.tgz installed.

nicolas@cassis:/tmp$ sudo installpkg js-1.8.0_rc1-x86_64-1_SBo.tgz
Verifying package js-1.8.0_rc1-x86_64-1_SBo.tgz.
Installing package js-1.8.0_rc1-x86_64-1_SBo.tgz:
# SpiderMonkey (Mozilla's JavaScript Engine)
# SpiderMonkey is the code-name for the Mozilla's C implementation of
# JavaScript. It can be used by applications such as elinks and others.
# This is the standalone version of the engine used by Firefox and other
# Mozilla applications.
# Homepage: http://www.mozilla.org/js/spidermonkey
Package js-1.8.0_rc1-x86_64-1_SBo.tgz installed.

nicolas@cassis:/tmp$ sudo installpkg erlang-otp-13B03-x86_64-1_SBo.tgz
Verifying package erlang-otp-13B03-x86_64-1_SBo.tgz.
Installing package erlang-otp-13B03-x86_64-1_SBo.tgz:
# Erlang (programming language)
# Erlang is a general-purpose concurrent programming language and
# runtime system.
# The sequential subset of Erlang is a functional language,
# with strict evaluation, single assignment, and dynamic typing.
# It was designed by Ericsson to support distributed,
# fault-tolerant, soft-real-time, non-stop applications.
# http://www.erlang.org/
Executing install script for erlang-otp-13B03-x86_64-1_SBo.tgz.
Package erlang-otp-13B03-x86_64-1_SBo.tgz installed.

Installation of CouchDB

First you need to create a couchdb group & user :

groupadd -g 231 couchdb
useradd -u 231 -g couchdb -d /var/lib/couchdb -s /bin/sh couchdb

Grab the slacckbuild ofCouchDB

Following steps are :

tar xzf couchdb.tar.gz
cd couchdb
# Grab couchdb 0.10.1 source file and put it in the "couchdb" directory
# Edit the couchdb.SlackBuild file if needed
# Build package :
=> Slackware package /tmp/SBo/couchdb-0.10.1-x86_64-1_SBo.tgz created.

Install package :

installpkg /tmp/SBo/couchdb-0.10.1-x86_64-1_SBo.tgz

Automatic stop/start for CouchDB

For automatic start :

In /etc/rc.d/rc.local, add :

if [ -x /etc/rc.d/rc.couchdb ]; then
        . /etc/rc.d/rc.couchdb start

For automatic stop :

In /etc/rc.d/rc.local_shutdown, add :

if [ -x /etc/rc.d/rc.couchdb ]; then
        . /etc/rc.d/rc.couchdb stop

Open http://localhost:5984/_utils/

Now, time to relax...

Installing_on_Slackware (last edited 2011-11-23 14:35:14 by 62)