-
StrangeAeons is the blog of Simon Wells, an academic researching Argumentation Theory, Automated Reasoning, Intelligent Agents (IA), and MultiAgent Systems (MAS).
Categories
September 2010 M T W T F S S « Jul 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Archives
CouchDB from Src How-To
Well this was more effort than it should have been. I have been dabbling with Erlang for
a while, and after struggling with MySQL, Tomcat and JDBC I was looking for an alternative web-app stack. CouchDB looks to be perfect, although sufficiently new that there is not a lot of documentation, both of the books available right now are OK, but not brilliant. In general I prefer the style of CouchDB: The Definitive Guide but prefer the examples from Beginning CouchDB. My personal preference with programming and software tool books is that they should provide detailed, hand-held, speak-to-me-like-I-am-an-imbecile walk-throughs of the most common basic use cases.
Anyhow, CouchApp looks like a great way to develop apps for CouchDB, although documentation is fairly sparse. The main problem I found is that the versions of Erlang and CouchDB available from repositories for both Ubuntu and Debian are way behind the cutting edge to the point that the examples in the books won’t run. I found that the best way to set up my CouchApp development environment is to completely avoid the repositories and build from source in a clean Ubuntu server VM using the following steps:
We are going to be building some software so the following tools are useful:
Install Erlang
Install CouchDB
Final Setup & Running CouchDB
Put xulrunner-devel on your LD_LIBRARY_PATH
Running CouchDB Manually
Running CouchDB As a Daemon