Thanks a lot. That is just what I am looking for.

Chong

On Sat, Sep 25, 2010 at 6:54 AM, Randall Leeds <[email protected]> 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 dependencies.
>
> On Sat, Sep 25, 2010 at 04:14, chongqing xiao <[email protected]> wrote:
>> 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 PM, Robert Newson <[email protected]> 
>> wrote:
>>> 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 <[email protected]> wrote:
>>>> 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 from couch_file:init/1
>>>>     in call from gen_server:init_it/6
>>>>     in call from proc_lib:init_p_do_apply/3
>>>>
>>>> 13> couch_file:open("c:ttt",[create]).
>>>>
>>>> Crash dump was written to: erl_crash.dump
>>>> eheap_alloc: Cannot allocate 729810240 bytes of memory (of type "heap").
>>>>
>>>>
>>>> Abnormal termination
>>>>
>>>> Thanks
>>>> Chong
>>>>
>>>> On Fri, Sep 24, 2010 at 1:48 PM, chongqing xiao <[email protected]> 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_file is not the actual module but I can't figure out how to get
>>>>> that.
>>>>>
>>>>> ฀Eshell V5.8.1  (abort with ^G)
>>>>> 1> c("c:/couchdb/src/couchdb/couch_file", [{outdir,
>>>>> "c:/couchdb/src/couchdb/"}]).
>>>>> {ok,couch_file}
>>>>> 2> couch_file.open("c:/test").
>>>>> ** exception error: bad function 'couch_file.open'
>>>>>
>>>>> Thanks
>>>>> Chong
>>>>>
>>>>
>>>
>>
>

Reply via email to