Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#! /bin/sh
# oops need to first install http://packages.debian.org/sid/i386/libmozjs2d/download
# then http://packages.debian.org/sid/i386/libmozjs-dev/download
# init
mkdir nodejs-couchdb
cd nodejs-couchdb
# nodejs
sudo apt-get install git-core g++ libssl-dev make
# node 0.2 is available at nodejs.org (install from there)
wget http://github.com/ry/node/zipball/v0.1.103
unzip ry-node-*.zip
cd ry-node-*
./configure --prefix=/usr
make
sudo make install
cd ..
# couchdb
sudo aptitude install libmozjs-dev libicu-dev erlang libcurl4-openssl-dev
wget http://www.apache.org/dist/couchdb/1.0.1/apache-couchdb-1.0.1.tar.gz
tar -xvzf apache-couchdb-*.tar.gz
cd apache-couchdb-*
./configure --prefix=/usr
make
sudo make install
cd ..
# clean up
cd ..
rm -rf nodejs-couchdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment