CouchDB 0.10.1 on Slackware 13.0
Par Nicolas Steinmetz. dimanche 3 janvier 2010, 23:38. CouchDB couchdb slackbuild slackware | Lien permanent.
Dépendances de CouchDB
Dans un premier temps, il vous faut récupérer les slackbuilds suivants :
Les autres dépendances sont normalement satisfaites :
- curl : à vérifier en utilisant un
curl-config --version - make & gcc
Créer les packages des slackbuids (les slackbuils sont prévus pour i486 ; si vous êtes en 64 bits, éditer le fichier <package>.Slackbuild pour modifier la valeur de ARCH.
Pour que le SlackBuild fonctionne, il vous faut mettre l'archive des sources du package à créer dans le répertoire créé en décompressant le fichier slackbuild.
bash tar xzf js.tar.gz cd js ./js.SlackBuild => Slackware package /tmp/js-1.8.0_rc1-x86_64-1_SBo.tgz created. tar xzf icu4c.tar.gz cd ../icu4c ./icu4c.SlackBuild => Slackware package /tmp/icu4c-4.2.1-x86_64-1_SBo.tgz created tar xzf erlang-otp.tar.gz cd erlang-otp ./erlang-otp.SlackBuild => Slackware package /tmp/erlang-otp-13B03-x86_64-1_SBo.tgz created.
Installer ensuite les packages créés :
bash 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: PACKAGE DESCRIPTION: # 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: PACKAGE DESCRIPTION: # 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: PACKAGE DESCRIPTION: # 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 de CouchDB
Il vous faut au préalable créer un utilisateur et un groupe couchdb :
bash groupadd -g 231 couchdb useradd -u 231 -g couchdb -d /var/lib/couchdb -s /bin/sh couchdb
Récupérer le slackbuild de CouchDB
il vous faut alors procéder de la façon suivante :
bash tar xzf couchdb.tar.gz cd couchdb # récupérer les sources de couchdb 0.10.1 et metter les dans votre répertoire couchdb # éditer si besoin le SlackBuild # créer votre package : ./couchdb.Slackbuild => Slackware package /tmp/SBo/couchdb-0.10.1-x86_64-1_SBo.tgz created.
Il ne reste plus qu'à installer le paquet :
bash installpkg /tmp/SBo/couchdb-0.10.1-x86_64-1_SBo.tgz
Démarrage / Arrêt automatique de CouchDB
Editer /etc/rc.d/rc.local pour y ajouter :
bash if [ -x /etc/rc.d/rc.couchdb ]; then . /etc/rc.d/rc.couchdb start fi
et dans /etc/rc.d/rc.local_shutdown :
bash if [ -x /etc/rc.d/rc.couchdb ]; then . /etc/rc.d/rc.couchdb stop fi
Ouvrez http://localhost:5984/_utils/
Et voilà... il est maintenant temps de vous relaxer 
Edit 1 : Mise à jour suite à l'approbation & correction de mon slackbuild sur Slackbuilds.org
Commentaires
Depuis la version 13.0, les paquets ont comme extension .txz (ils sont compressés avec xz). Les slackbuilds de SlackBuilds.org gardent par défaut .tgz, pour une compatibilité. Tu peux modifier l'extension lors de la création du paquet :
Si tu tiens à refaire tes paquets, change uniquement la variable BUILD, et fait un 'upgradepkg', par exemple :Et il n'y a pas besoin de modifier une option de makepkg ? Il suffit d'indiquer le type d'extension et ça se gère tout seul ?
Merci de l'astuce en tous cas