After the installation of the required software (Erlang, ICU and Spidermonkey) we can finally install CouchDB which is the easiest part of the whole story…

Basics

root@test:~# cd /tmp
root@test:/tmp# wget http://apache.linux-mirror.org//couchdb/1.1.0/apache-couchdb-1.1.0.tar.gz
--2011-07-31 16:47:07--  http://apache.linux-mirror.org//couchdb/1.1.0/apache-couchdb-1.1.0.tar.gz
Connecting to apache.linux-mirror.org|80.237.211.23|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1088226 (1.0M) [application/x-gzip]
Saving to: `apache-couchdb-1.1.0.tar.gz'

100%[=========================================================================>] 1,088,226    652K/s   in 1.6s

2011-07-31 16:47:09 (652 KB/s) - `apache-couchdb-1.1.0.tar.gz' saved [1088226/1088226]

root@test:/tmp# tar xvf apache-couchdb-1.1.0.tar.gz
Decompressing 'apache-couchdb-1.1.0.tar.gz' with '/usr/bin/gzcat'...
x apache-couchdb-1.1.0, 0 bytes, 0 tape blocks
x apache-couchdb-1.1.0/README, 2748 bytes, 6 tape blocks
x apache-couchdb-1.1.0/share, 0 bytes, 0 tape blocks

Perparations

root@test:/tmp# cd apache-couchdb-1.1.0
root@test:/tmp/apache-couchdb-1.1.0# PATH=/usr/bin:/usr/gcc/4.3/bin:/opt/local/bin:$PATH
root@test:/tmp/apache-couchdb-1.1.0# ./configure --prefix=/opt/local --with-js-include=/opt/local/include --with-js-lib=/opt/local/lib --with-erlang=/opt/local/lib/erlang/usr/include

checking for a BSD-compatible install... build-aux/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
...
config.status: executing libtool commands
You have configured Apache CouchDB, time to relax.
Run `make && sudo make install' to install.

Building

root@test:/tmp/apache-couchdb-1.1.0# gmake
gmake  all-recursive
gmake[1]: Entering directory `/tmp/apache-couchdb-1.1.0'
Making all in bin
gmake[2]: Entering directory `/tmp/apache-couchdb-1.1.0/bin'
sed -e "s|%ERL%|/usr/bin/erl|g" \
            -e "s|%ICU_CONFIG%|/opt/icu/bin/icu-config|g" \
            -e "s|%bindir%|/opt/local/bin|g" \
...

root@test:/tmp/apache-couchdb-1.1.0# gmake install
Making install in bin
gmake[1]: Entering directory `/tmp/apache-couchdb-1.1.0/bin'
gmake[2]: Entering directory `/tmp/apache-couchdb-1.1.0/bin'
test -z "/opt/local/bin" || ../build-aux/install-sh -c -d "/opt/local/bin"

Next steps

Now that we have installed CouchDB, we can start to set it up and create a Solaris Service for it. This will be discussed in Part 5 of this Guide.


Related Posts



Ein Kommentar bis “CouchDB on OpenSolaris: Part 4 – CouchDB”

  1. [...] CouchDB on OpenSolaris: Part 2 – ICU CouchDB on OpenSolaris: Part 3 – Spidermonkey CouchDB on OpenSolaris: Part 4 – CouchDB CouchDB on OpenSolaris: Part 5 – Setting up CouchDB as [...]

Eine Antwort schreiben