From dev-return-11844-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Fri Sep 24 19:01:23 2010 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 96067 invoked from network); 24 Sep 2010 19:01:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Sep 2010 19:01:23 -0000 Received: (qmail 11527 invoked by uid 500); 24 Sep 2010 19:01:22 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 11468 invoked by uid 500); 24 Sep 2010 19:01:22 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 11455 invoked by uid 99); 24 Sep 2010 19:01:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Sep 2010 19:01:22 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of robert.newson@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Sep 2010 19:01:14 +0000 Received: by qyk9 with SMTP id 9so1717527qyk.11 for ; Fri, 24 Sep 2010 12:00:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=b/bf9Qu8Ng5f1bdZs1RCwejdla+K4x29qko1Z6+1FGc=; b=S5KOqMNyQ6HGn5RSL7yVY1PckuHeV4xcC3HbcEqZUEF3gg5d8GrhSyb2i/dHuc5a7V awFIYSqoFY9GAeWojAxplE9k5O4ZcMR4IWtTgr81T/08/1A/FyTPi5c2wuRjjMKiY9bD wdnJoPhE90JM2Z0I9yEZyPKImycFOE2lMLU7s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=KM8S4ZAfAX6OlE0DT3nBaqrEtAkjzgy4ysc2ZepXVZXRk/+C4YJitPZaFDwFkMVBTw lX2ni67Lq3eCvVm1JgJz17Fq9/cQpaVGGXEDV1zAUZBm7yrwoB6tHlhgCN6Mydyz4ri/ VCYT+ez1TUqhnMDwOJP46yPeH/iv8bBAMbjLw= MIME-Version: 1.0 Received: by 10.229.190.21 with SMTP id dg21mr2805976qcb.211.1285354437074; Fri, 24 Sep 2010 11:53:57 -0700 (PDT) Received: by 10.229.51.200 with HTTP; Fri, 24 Sep 2010 11:53:57 -0700 (PDT) In-Reply-To: References: Date: Fri, 24 Sep 2010 19:53:57 +0100 Message-ID: Subject: Re: Simple erlang and erl question From: Robert Newson To: dev@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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_file is not the actual module but I can't figure out how to get > that. > > =E0=B8=80Eshell V5.8.1 =C2=A0(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 >