CouchDBGot interested one of Apache projects called CouchDB (http://couchdb.apache.org).
Looked at http://wiki.apache.org/couchdb/Installing_on_Ubuntu, and installing on Ubuntu8.10 is just
$ sudo apt-get install couchdb
To start,
$ sudo /etc/init.d/couchdb start
$ sudo /etc/init.d/couchdb status
returns
Apache CouchDB is running as process 4455. Time to relax.
Accessing http://localhost:4455/ gives me an error. Following http://wiki.apache.org/couchdb/Installing_on_Ubuntu, accessed http://localhost:5984/ gives me
{"couchdb":"Welcome","version":"0.8.0-incubating"}
on a browser. Well, /etc/couchdb/couch.ini shows the port 5984. Should've looked at.
OK, what's next? Going back to FrontPage of the wiki, and hit Basics. Among the listed languages, choose Getting started with Python. It tells me to install couch-python, but on Ubuntu8.10, all i need is to do
$ sudo apt-get install python-couchdb
python-httplib2 and python-simplejson are installed as well.
python-couchdb installed was version 0.3, and didn't run some examples i ran. Uninstalled it and did
$ easy_install couchdb
which installed versio 0.5 at
/usr/lib/python2.5/site-packages/CouchDB-0.5-py2.5.egg
Following http://www.ibm.com/developerworks/jp/web/library/j_wa-couchdb/, installed couchdb0.8.1 after unistalling 0.8.0 as
$ tar zxvf apache-couchdb-0.8.0-incubating.tar.gz $ cd apache-couchdb-0.8.0-incubating $ ./configure
At the end on terminal, there were comments checking for JS_NewContext in -ljs... no
checking for JS_NewContext in -lmozjs... no configure: error: Could not find the js library. Is the Mozilla SpiderMonkey library installed?
Guess i need to install js library... Installed spidermonkey and libmozjs0d, and ran ./confiture... failed again. Well, i don't know what's missing, but installed the following applications which i skipped
sudo apt-get install build-essentials sudo apt-get install libtool sudo apt-get install automake sudo apt-get install libmozjs-dev sudo apt-get install libicu-dev sudo apt-get install erlang
Over 100MB downloaded. Ran ./configure again, and got the last line
You have configured Apache CouchDB. Time to relax.
Ran
$ make $ make install
Check
$ couchdb -V couchdb - Apache CouchDB 0.8.1-incubating
OK.
Ran couchdb as
$ couchdb -b Apache CouchDB has started. Time to relax. $ couchdb -s Apache CouchDB is running as process 21959. Time to relax.
The couchdb-python example using Javascript functions now works 