From user-return-21966-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Mon Sep 3 13:38:25 2012 Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CD6CBD98A for ; Mon, 3 Sep 2012 13:38:25 +0000 (UTC) Received: (qmail 44830 invoked by uid 500); 3 Sep 2012 13:38:24 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 44784 invoked by uid 500); 3 Sep 2012 13:38:24 -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 44776 invoked by uid 99); 3 Sep 2012 13:38:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 13:38:23 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [87.117.198.154] (HELO zoe.mltserver-three.co.uk) (87.117.198.154) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 13:38:19 +0000 Received: from 027cd5e8.bb.sky.com ([2.124.213.232]:55725 helo=[192.168.0.4]) by zoe.mltserver-three.co.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77) (envelope-from ) id 1T8Wqj-0006Qi-6q for user@couchdb.apache.org; Mon, 03 Sep 2012 14:37:57 +0100 Date: Mon, 3 Sep 2012 14:37:56 +0100 From: Martin Hewitt To: user@couchdb.apache.org Message-ID: In-Reply-To: References: <32ED02917B8145189CC13A2B6F469D0C@thenoi.se> <307214F1565F40E3A592DC9F82316D19@thenoi.se> Subject: Re: CouchDB 1.2.0, Amazon EC@ & Amazon Linux AMI X-Mailer: sparrow 1.6.3 (build 1164) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5044b2b4_25e45d32_163" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - zoe.mltserver-three.co.uk X-AntiAbuse: Original Domain - couchdb.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - thenoi.se X-Virus-Checked: Checked by ClamAV on apache.org --5044b2b4_25e45d32_163 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline My SpiderMonkey libs are in /usr/local/lib/ and my header files in /usr/local/include/js as per the ./configure command. I'll try playing around with LD_LIBRARY_PATH and see if that helps. Martin Technical Director Thenoi.se w: http://www.thenoi.se Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Monday, 3 September 2012 at 13:54, CGS wrote: > Where do you have SpiderMonkey installed? You need to provide the path > toward your SpiderMonkey (libs and headers). During runtime, you can use > all the time LD_LIBRARY_PATH to add new searching paths for libraries. > > CGS > > > > On Mon, Sep 3, 2012 at 2:39 AM, Martin Hewitt wrote: > > > Hi CGS, > > > > I've just run > > > > curl http://127.0.0.1:5984/_config/query_servers > > > > Which gave me: > > > > {"coffeescript":"/usr/local/bin/couchjs > > /usr/local/share/couchdb/server/main-coffee.js","javascript":"/usr/local/bin/couchjs > > /usr/local/share/couchdb/server/main.js"} > > > > If I try and run: > > > > /usr/local/bin/couchjs > > > > I get: > > > > /usr/local/bin/couchjs: error while loading shared libraries: > > libmozjs185.so.1.0: cannot open shared object file: No such file or > > directory > > > > My ./configure command is: > > > > ./configure --with-erlang=/usr/local/lib/erlang/usr/include > > --with-js-lib=/usr/local/lib/ --with-js-include=/usr/local/include/js/ > > > > And libmozjs185.so.1.0 exists in /usr/local/lib/: > > > > [ec2-user@ip-xx-xxx-xx-xx apache-couchdb-1.2.0]$ ls /usr/local/lib > > couchdb erlang libmozjs185-1.0.a libmozjs185.so libmozjs185.so.1.0 > > libmozjs185.so.1.0.0 pkgconfig > > > > > > The output of my ./configure command is here: > > https://gist.github.com/3605914 > > > > Martin > > > > > > On Saturday, 1 September 2012 at 19:37, CGS wrote: > > > > > ...and I suppose you don't have SpiderMonkey there. There may be a > > problem > > > if js-devel is too old. > > > > > > > > > > > > On Sat, Sep 1, 2012 at 7:25 PM, Martin Hewitt > martin@thenoi.se (mailto:martin@thenoi.se))> wrote: > > > > > > > Hi Dave, CGS, > > > > > > > > Thanks for replying - these lines are copied directly from my CentOS > > > > script, which works, and I haven't quite got through unpicking each > > > > > > > > > > > > > > line > > > > yet (if it ain't broke etc). > > > > > > > > I'll try without js-devel. > > > > > > > > My ./configure command is: > > > > ./configure --with-erlang=/usr/local/lib/erlang/usr/include > > > > --with-js-lib=/usr/local/lib/ --with-js-include=/usr/local/include/js/ > > > > > > > > > > > > Martin > > > > > > > > > > > > On Saturday, 1 September 2012 at 18:08, Dave Cottlehuber wrote: > > > > > > > > > On 1 September 2012 16:11, Martin Hewitt > martin@thenoi.se (mailto:martin@thenoi.se)) (mailto: > > > > martin@thenoi.se (mailto:martin@thenoi.se))> wrote: > > > > > > Just by way of further info, this is the output of my make && make > > > > > > > > > > > > > > > > > install command: > > > > > > > > > > > > https://gist.github.com/3574166 > > > > > > > > > > > > I'm trying with > > > > > > - CouchDB v1.2.0 from here: > > > > > > > > > > > > > > > > > > > > > > > > > > http://mirror.rmg.io/apache/couchdb/releases/1.2.0/apache-couchdb-1.2.0.tar.gz > > > > > > - SpiderMonkey 1.85 from here: > > > > > > > > > > > > > > > > > http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz > > > > > > - ERLang 14B01 from here: > > > > > > > > > > > > > > > > > http://www.erlang.org/download/otp_src_R14B01.tar.gz > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Martin, > > > > > > > > > > What ./configure params are you using, & what's its output? > > > > > > > > > > You'll only need spidermonkey 1.8.5 and not js-devel. Most likely > > > > > that's where things are getting mucked up. > > > > > > > > > > A+ > > > > > Dave > > > > > > > > > > > > > > > > > > > > > > > --5044b2b4_25e45d32_163--