Differences between revisions 4 and 5
Revision 4 as of 2011-11-23 14:35:14
Size: 4289
Editor: 62
Comment: add ContributorGroup link
Revision 5 as of 2018-12-17 18:26:11
Size: 0
Editor: JoanTouzet
Comment: See http://docs.couchdb.org/en/stable/install/index.html
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:

== Dependancies for CouchDB ==

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

 * [[http://slackbuilds.org/repository/13.0/network/js/|js]]
 * [[http://slackbuilds.org/repository/13.0/libraries/icu4c/|icu4c]]
 * [[http://slackbuilds.org/repository/13.0/development/erlang-otp/|erlang-otp]]

Other [[http://books.couchdb.org/relax/appendix/installing-from-source|dependancies]] are met by slackaware's packages :
 * curl : you can check with :
curl-config --version
 * make & gcc

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 [[http://slackbuilds.org/repository/13.0/development/couchdb/|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...