Re: Simple erlang and erl question

2010-09-26 Thread chongqing xiao
Thanks a lot. That is just what I am looking for. Chong On Sat, Sep 25, 2010 at 6:54 AM, Randall Leeds wrote: > If you want to interactively play with couchdb code in erlang you > should run couchdb with the -i flag (lower-case I ["eye"]). > This will load all the necessary applications and depe

Re: Simple erlang and erl question

2010-09-25 Thread Randall Leeds
If you want to interactively play with couchdb code in erlang you should run couchdb with the -i flag (lower-case I ["eye"]). This will load all the necessary applications and dependencies. On Sat, Sep 25, 2010 at 04:14, chongqing xiao wrote: > Understand. Anyhow, I figured out the problem. It is

Re: Simple erlang and erl question

2010-09-24 Thread chongqing xiao
Understand. Anyhow, I figured out the problem. It is because I have to load "couch_stats_collector" first in order to use "couch_file". I am surprised even "couch_file" depends on "couch_stats_collector", the dependency is not explicitly defined in "couch_file". Chong On Fri, Sep 24, 2010 at 2:57

Re: Simple erlang and erl question

2010-09-24 Thread Robert Newson
A mailing list is not a great medium for learning a new programming language or getting up to speed with a new code base. Try this for the former http://oreilly.com/catalog/9781934356005 and #couchdb for the latter. B. On Fri, Sep 24, 2010 at 8:39 PM, chongqing xiao wrote: > My bad. Now I get t

Re: Simple erlang and erl question

2010-09-24 Thread chongqing xiao
My bad. Now I get this 10> couch_file:open("ttt"). ** exception exit: undef in function couch_stats_collector:track_process_count/1 called as couch_stats_collector:track_process_count({couchdb, open_os_files}) in call

Re: Simple erlang and erl question

2010-09-24 Thread Robert Newson
you need a : where you have a . On Fri, Sep 24, 2010 at 7:48 PM, chongqing xiao wrote: > Hi, > > I was learning erlang and couchdb using the erl and I got the > following error when I tried to use couch_file in erl shell. > Could someone explain what might be the problem? I am guessing > couch_fi

Simple erlang and erl question

2010-09-24 Thread chongqing xiao
Hi, I was learning erlang and couchdb using the erl and I got the following error when I tried to use couch_file in erl shell. Could someone explain what might be the problem? I am guessing couch_file is not the actual module but I can't figure out how to get that. ฀Eshell V5.8.1 (abort with ^G)