From user-return-8776-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Fri Feb 12 18:54:55 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 86816 invoked from network); 12 Feb 2010 18:54:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Feb 2010 18:54:55 -0000 Received: (qmail 48781 invoked by uid 500); 12 Feb 2010 18:54:54 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 48708 invoked by uid 500); 12 Feb 2010 18:54:53 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 48698 invoked by uid 99); 12 Feb 2010 18:54:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2010 18:54:53 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.217.221 as permitted sender) Received: from [209.85.217.221] (HELO mail-gx0-f221.google.com) (209.85.217.221) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2010 18:54:43 +0000 Received: by gxk21 with SMTP id 21so744989gxk.15 for ; Fri, 12 Feb 2010 10:54:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=hdcQ5XBEmjEH37Z2cyepeh/iIk0Qhi70nzV5BoQDlxg=; b=ZGjJjZpL3mCiI55mpYLsJBP6BUU2a3qKQCVf06+qxjzA3UVrpHhDvjFvIj1rb+BISK WeFzpZYkUu44cW4hRSYJQcf3HM/b/l5Q1sUeK3tTlqTNTqzYGN1Jv63+CiIaJaKikzSn irNBpovuhs01ffAuBPU3UPrvWa5ENcqu37OPU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=T6FSqtHC49iCFyQATCzi7RyHIzJlWZWkHlahISTVD1ykJOpJezvDsN0TLt4b+xgPNI 7IwZTCnxDXLiBzlQfFlf3LdTN+or0gVY8OJmr2TzP7p3wXEeBdHj+LJSdCmywXBpElTM NJwYUSxp3Ni1wCK+kgPoac3669RZNG6oYLlTc= MIME-Version: 1.0 Received: by 10.101.193.7 with SMTP id v7mr2545949anp.183.1266000862047; Fri, 12 Feb 2010 10:54:22 -0800 (PST) In-Reply-To: <913BB8D3-BA10-4429-B6C4-8866C6A3D845@me.com> References: <064EFE25-1875-4E57-804A-6DA9CA1EDE8C@mac.com> <913BB8D3-BA10-4429-B6C4-8866C6A3D845@me.com> From: Paul Davis Date: Fri, 12 Feb 2010 13:54:01 -0500 Message-ID: Subject: Re: Installing form source on OS X Snow Leopard To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Feb 12, 2010 at 1:50 PM, Russell Brown wrote= : > Hi Paul and All, > Yes yes yes. That was it. Many thanks. > > I did > brew install icu4c > then I got a fresh otp from github, configured like you said and rebuilt = couchdb, and as you predicted, couchdb and I are now getting along swimming= ly. > > Should I add this to the wiki, or is it too much of an edge case? That'd be a good addition to the wiki. > > Cheers > > Russell > On 12 Feb 2010, at 17:31, Paul Davis wrote: > >> Russell, >> >> Welcome to the awesomeness of multi-architecture binaries :) >> >> The key here is to make sure that Erlang, ICU, and couch_icu_driver >> are all compiled with the same architecture. 10.6 defaults to trying >> to link things as x86_64 where as Erlang will default to i386 if you >> don't use the --enable-darwin-64bit flag. And the ICU configure has a >> screwy thing in its configure system that prevents x86_64 compilation. >> There's a patch in the Homebrew [1] formula [2]. Once those are both >> built as x86_64 you should be able to get on swimmingly. >> >> HTH, >> Paul Davis >> >> [1] http://github.com/mxcl/homebrew >> [2] http://github.com/mxcl/homebrew/blob/master/Library/Formula/icu4c.rb >> >> On Fri, Feb 12, 2010 at 9:22 AM, Russell Brown w= rote: >>> Hi, >>> I have been following the instructions at http://wiki.apache.org/couchd= b/Installing_on_OSX to install couchdb from source. I have a MacBook Pro fr= om 2007-2008 (pre unibody) running snow leopard. When I run "arch" I get i3= 86. >>> >>> I am able to build everything following the instructions but when I sta= rt couchdb I get the following crash report >>> >>> =3DINFO REPORT=3D=3D=3D=3D 12-Feb-2010::10:58:58 =3D=3D=3D >>> =A0 =A0application: couch >>> =A0 =A0exited: {bad_return,{{couch_app,start, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= [normal, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= ["/Users/russell/couchdb/etc/couchdb/default.ini", >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0"/Users/russell/couchdb/etc/couchdb/local.ini"]]}, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {'EXIT',"dlopen(/Users/= russell/couchdb/lib/couchdb/erlang/lib/couch-0.11.0b909351/priv/lib/couch_i= cu_driver.so, 2): no suitable image found. =A0Did find:\n\t/Users/russell/c= ouchdb/lib/couchdb/erlang/lib/couch-0.11.0b909351/priv/lib/couch_icu_driver= .so: mach-o, but wrong architecture"}}} >>> =A0 =A0type: temporary >>> >>> >>> >>> I guessed that maybe the >>> >>> >>> /runConfigureICU MacOSX --with-library-bits=3D64 --disable-samples --en= able-static # if this fails for you try: ./configure --enable-64bit-libs >>> >>> was to blame so I tried building icu again without the 64 bit options. = I rebuilt couchdb and still had the same error when I tried to run it. In d= esperation I removed icu and installed MacPorts and asked that to install i= cu for me. I rebuilt couchdb again and still get the same error when I try = to start it. >>> >>> I googled around a bit. I can't find that exact error to do with couchd= b but I have found similar stuff that seems to be mainly people trying to b= uild 32 bit code on 64 bit machine. >>> >>> I'm sort of at a loss. I know I can use CouchDBX (in fact I have done b= efore) but I wanted to see if I could build from source (I guess not ;)) an= d try a get a bit more control over my environment. I have one deployed web= site backed by couchdb (on ubuntu) so I thought I'd be better trying to set= up a dev env closer to the deployed env. >>> >>> I know this is not strictly speaking a couchdb issue, but if anyone out= there has seen this before or can help I appreciate it. >>> >>> Thanks in advance >>> >>> Russell >>> > >