It’s just data

Building CouchDB

I *really* want to play with CouchDB.

Update: Ciaran has posted new build instructions

sudo apt-get install build-essential erlang libicu34 libicu34-dev libreadline5-dev
cd ~/svn
svn checkout http://couchdb.googlecode.com/svn/trunk couchdb
cd couchdb
export ERLANG_INCLUDE_DIR=/usr/lib/erlang/usr/include
sh build.sh | tee build.log
sh build.sh --install=$HOME | tee install.log

Then to start the server:

cd $HOME/couchdb
sh bin/startCouchDb.sh

You can verify that the server is alive by visiting http://localhost:8888/.

You can run a set of javascript tests by visiting http://localhost:8888/_utils/couch_tests.html (example output).

You can interact with the server directly via JavaScript by visiting http://localhost:8888/_utils/shell.html, for example:

var req = new XMLHttpRequest();
req.open("PUT", "/foo");
req.send("");
req.responseText;
{"ok":true}
req.open("POST", "/foo/_temp_view");
req.send("function(doc) { return doc }");
req.responseText;
{"view":"_temp_view:function(doc) { return doc }","total_rows":0,"rows":[]}
req.open("DELETE", "/foo");
req.send("");
req.responseText;
{"ok":true}

Does anybody know a mailing list or IRC channel where the CouchDB developers hang out?


#couchdb on freenode

Posted by Jan at

Hey! That was going to be part 6 of my tedious ongoing series. I haven’t even done part 5 yet.

CouchDB looks very interesting doesn’t it.

Posted by Ciaran at

Wow. I just gave up trying to build it from svn, opened up Google Reader, and this post - the earlier version, where you couldn’t get it to build - was there on the first page. I click on the link and you’ve already got it working.

I missed the dot at the end of “couch_server:start().” at first, but finally noticed it.
Now, why do I get an “illegal_database_name” error when I try to go to http://localhost:8888/$utils/peek.html

{"error":{"id":"error","reason":"illegal_database_name"}}


Posted by Dotan Dimet at

@Dotan These are old URLs and no longer work, please see [link] for more info.

Posted by Jan at

Regarding peek.html - Duh.

Posted by Dotan Dimet at

If you have ejabberd running, as I do, you might well have a line like

{8888, ejabberd_service, [{access, all},

in you configuration file (/etc/jabber/ejabberd.cfg here), which will make all fail unless

Got your samples running, now I just need to figure what to do with it and how to do it. :)

Posted by Santiago Gala at

Sam Ruby: Building CouchDB

[link]...

Excerpt from del.icio.us/gerd.storm at

Why does the checkout contain another SVN repository?? Is this a mistake of some sort? Do I actually just need everything in CouchProjects?

Posted by Manuzhai at

A new SpiderMonkey embeddor

Over on Sam Ruby’s blog, he has an entry about CouchDB. Built on Erlang and JavaScript. Wild. We should use it to store browser profiles on the network....

Excerpt from Rob Sayre's Mozilla Blog at

Sam Ruby: Building CouchDB

[link]...

Excerpt from del.icio.us/tag/couchdb at

Why does the checkout contain another SVN repository?? Is this a mistake of some sort? Do I actually just need everything in CouchProjects?

Posted by Manuzhai at

(Sorry for the double comment.)

Posted by Manuzhai at

Manuzahai: I’m not a CouchDB developer.  Perhaps you would have better results asking your question on the newly set up mailing list?

Posted by Sam Ruby at

Ascetic Database Architectures

Anant Jhingran:  Counter example.  I’ve been playing with CouchDB.  That code is definitely pre-alpha at this point, but this post is not about the code itself, but about the interface it provides. I was testing i... [more]

Trackback from Sam Ruby

at

Sam Ruby: Building CouchDB

joshua : Sam Ruby: Building CouchDB - ooh Tags : dist...

Excerpt from HotLinks - Level 1 at

CouchDb PHP Library for JSON API

I just sent this message to the brand new CouchDb mailinglist : Dear Couch Potatoes (or something), I updated the CouchDb PHP Library and the Demo application BugShrink (our bug-tracker) to the new JSON API. They are up in a separate Google Code...

Excerpt from plok at

Links for 2007-09-07 [del.icio.us]

C-Store: A Column Oriented DBMS being commercialized as vertica Sam Ruby: Building CouchDB ooh haskell vs erlang summary...

Excerpt from joshua's blog at

I’d guess most people who read this blog could figure this out for themselves, but here are the changes that (seem to) make it build on OS X (assuming you’re installing the support stuff with MacPorts). Hope it saves a little time for someone.

sudo port install erlang (if you don’t already have it)
sudo port install icu

Sam’s line:

export ERLANG_INCLUDE_DIR=/usr/lib/erlang/usr/include

needs to become:

export ERLANG_INCLUDE_DIR=/opt/local/lib/erlang/usr/include

Edit the Makefile so that it says:

UNICODE_INCLUDE_DIR ?= /opt/local/include
UNICODE_LIB_DIR ?= /opt/local/lib

Those minor changes appear to be enough to get things to build. It’s failing one of the tests in the browser (and I’m too green to understand the meaning of the error right now, much less fix it), but the JavaScript shell looks like it works fine.

Having a live Erlang prompt on the server side is very, very cool. I just started learning Erlang, and I can already see how the ability to hot-swap running code is going to make writing (and debugging) mini-servers a much more pleasant experience.

Posted by Tony Hursh at

Some Thoughts on CouchDB and Relational Databases

... [more]

Trackback from Dare Obasanjo aka Carnage4Life

at

On Ubunutu with the gcc line:

gcc (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)

I needed the following tiny workaround patch:

Index: src/js/config/Linux_All.mk
===================================================================
--- src/js/config/Linux_All.mk  (revision 187)
+++ src/js/config/Linux_All.mk  (working copy)
@@ -43,7 +43,7 @@
 
 CC = gcc
 CCC = g++
-CFLAGS +=  -Wall -Wno-format
+CFLAGS +=  -Wall -Wno-format -O2
 OS_CFLAGS = -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R
 
 RANLIB = echo

______________________________

Thanks to this tip: [link]

Posted by Duncan Cragg at

@Tony Hursh:  For what it’s worth, if you do exports for UNICODE_INCLUDE_DIR and UNICODE_LIB_DIR, you don’t need to edit the Makefile.

export UNICODE_INCLUDE_DIR=/opt/local/include
export UNICODE_LIB_DIR=/opt/local/lib

I did have to install erlang and icu via macports ahead of time, too, however.

Posted by l.m.orchard at

CouchDb

I’ve been poking around with CouchDb , like all the cool kids. It’s pretty clever; a database which isn’t relational, where the connection API is REST, and where queries are written in JavaScript and data is returned as JSON. It’s been accused of...

Excerpt from as days pass by at

Building CouchDB on OS X

Here’s how I got CouchDB to easily install on OS X. Requirements: MacPorts installed. 1. sudo port install erlang 2. sudo port install icu 3. svn checkout [link] couchdb && cd couchdb 4. export...

Excerpt from thoughts to blog at

Building CouchDb on Mac OS X

I, like Sam, really want to play with CouchDb. But I’m a MacOSX box that I barely understand after 3 months of ownership. Install MacPorts and run: sudo port install erlang icu subversion Add these two lines to your .bash_profile (or...

Excerpt from Something Similar at

Sam Ruby: Building CouchDB

[link]...

Excerpt from del.icio.us/atetlaw at

Maybe you can update this post. The CouchDB svn repository has moved to [link] but people are still trying the old one via finding this post. Thanks!

Posted by Chris Anderson at

Building CouchDb on Mac OS X

I, like Sam, really want to play with CouchDb. But I’m a MacOSX box that I barely understand after 3 months of ownership. Install MacPorts and run: sudo port install erlang icu subversion Add these two lines to your .bash_profile (or .profile if...

Excerpt from Something Similar at

[CouchDB] CouchDB歴

以前、相性がよすぎる件と題して、書いた。追記しよう。出会いから旅立ちまで(違。 Hadoop MapReduce をやっていて、Javaやだなーと思っていたら、CouchDBをSam Rubyのブログで見つけた件*1。 CouchDB、そろそろ誰か見るだろうかなんか書いたほうがいいんじゃね?と思ってい...

Excerpt from Web屋修行中の人の日記 || WebJourney 開発ログ at

Relaxed Inc.

Damien Katz:  CouchDB crossed my radar just over two years ago, a few months later, Damien was at IBM, it entered incubation at the ASF a little over a month later.  It has been an exciting project to watch. My role was simply as a catalyst... [more]

Trackback from Sam Ruby

at

Add your comment