Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 42278 invoked from network); 1 Oct 2010 21:59:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Oct 2010 21:59:51 -0000 Received: (qmail 44998 invoked by uid 500); 1 Oct 2010 21:59:50 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 44801 invoked by uid 500); 1 Oct 2010 21:59:49 -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 44793 invoked by uid 99); 1 Oct 2010 21:59:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 21:59:49 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.191.68.78] (HELO smtp113.biz.mail.mud.yahoo.com) (209.191.68.78) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 01 Oct 2010 21:59:40 +0000 Received: (qmail 84979 invoked from network); 1 Oct 2010 21:59:17 -0000 Received: from [192.168.1.3] (dhimes@108.7.60.168 with plain) by smtp113.biz.mail.mud.yahoo.com with SMTP; 01 Oct 2010 14:59:16 -0700 PDT X-Yahoo-SMTP: zyW4CVyswBBC3qNxjciP8LPF0LlT4Q-- X-YMail-OSG: _rvcoY0VM1kHrgnxJh62hnY7wLYyH.gKyW8ZNmtN1HwkRfw raI6JEY0Do0wnWXvKr4PY_bwh0lnDleK_ogOXEIrfbzGxVJuGfhSPtqxG18h ENsDoLlMxY0kJkkdfmfYEPG15ptgvIp3IuHCtVvzwM9wp8TkoE6sejgrLz0u UVuHYQfVy39AO4t8d.8PzxhmWUUeKCovRkyK1Dtmd4mgmwzvGAKMOTw79Juk YCone53t7R.M4Y2ngXaxRTuLCkKQs22eUsAwexYnmJscOoD87BXYYiMpSiUy FOS8GPYUupKCongLFKEIWXXvOiRe2IJf0nT.bM8e8pZDBNEEAf1Gh8m6bUA- - X-Yahoo-Newman-Property: ymail-3 Subject: Re: compiling on Ubuntu - missing spidermonkey jsapi headers From: Dan Himes To: user@couchdb.apache.org In-Reply-To: <4CA658FD.1010909@gmail.com> References: <4CA29976.6050109@gmail.com> <4CA2CC25.2040401@linux.com> <4CA363CC.4050405@gmail.com> <4CA50419.5060102@gmail.com> <4CA518D2.5060402@gmail.com> <4CA57678.3000405@gmail.com> <4CA658FD.1010909@gmail.com> Content-Type: multipart/alternative; boundary="=-mTWK4wCJ8cCv8j4k6t/P" Organization: Virtual Learning Environment Solutions, Inc. Date: Fri, 01 Oct 2010 17:59:15 -0400 Message-ID: <1285970355.4807.67.camel@dirac.home> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 X-Virus-Checked: Checked by ClamAV on apache.org --=-mTWK4wCJ8cCv8j4k6t/P Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Make sure you are switch-usering to the right user. My user and groups are both couchdb (set with chown and chgrp). Best regards, Dan On Fri, 2010-10-01 at 15:56 -0600, MilesTogoe wrote: > On 10/01/2010 12:27 AM, afters wrote: > > Hi Miles, > > > > You could try following example 2 in the wiki ( > > http://wiki.apache.org/couchdb/Installing_on_Ubuntu#Example_2_.28with_minimal_dependencies.29), > > which builds spidermonkey from source and does not rely on xulrunner. It > > worked for me. > > > > okay, thks, compiling spidermonkey from source was easy and solved that > problem but now getting these errors - weird since using sudo to run > configure - any ideas ? > > ./configure: line 12432: ./config.status: Permission denied > ./configure: line 12446: ./config.status: Permission denied > .......... > configure: error: write failure creating ./config.status > > 12432 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 > > > > > > > a. > > > > On 1 October 2010 07:49, MilesTogoe wrote: > > > > > >> On 09/30/2010 05:18 PM, Randall Leeds wrote: > >> > >> > >>> It looks like > >>> > >>> ./configure --with-js-include=/usr/lib/xulrunner-devel-1.9.2.10/include > >>> --with-js-lib=/usr/lib/xulrunner-devel-1.9.2.10/lib > >>> > >>> should work fine for you. At least it should get you past the > >>> configuration stage. > >>> If at all possible I would get into #couchdb on freenode for some more > >>> realtime assistance if you're still stuck. > >>> Sorry this has been a frustrating process for you. It's a combination > >>> of a number of factors including Mozilla's stance on shipping > >>> spidermonkey on a product (i.e. don't, it's part of xulrunner only), > >>> Ubuntu's policy on linkage and ABI (can't make spidermonkey linkable > >>> by default because they won't guarantee any version compatibility), > >>> the libmozjs -> xulrunner-devel packaging change, etc. > >>> > >>> > >>> > >> the above configure does not work - still failing on not finding js api > >> > >> we dug into the configure file => sent us to the make file > >> JSLIB = -lmozjs > >> JS_LIB_BASE = mozjs > >> JS_LIB_BINARY = > >> > >> does this look right ? I'm not sure about what mozjs is and if the > >> lib_binary should be blank > >> > >> re Mozilla + Ubuntu issues - yeah, understand. > >> > >> wondering if there is a good way to hack in hard coded necessary > >> spidermonkey libs ? > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> I think I can confidently speak for the list, though, when I say we're > >> > >>> happy to work through this with you. > >>> Once you get it sorted out if you find anything amiss in the wiki page > >>> you should save the next person from experiencing the same pain and > >>> update the page with what you've learned. That'd be really great. > >>> > >>> Regards, > >>> Randall > >>> > >>> On Thu, Sep 30, 2010 at 16:10, MilesTogoe wrote: > >>> > >>> > >>> > >>>> On 09/30/2010 04:31 PM, Paul Davis wrote: > >>>> > >>>> > >>>> > >>>>> On Thu, Sep 30, 2010 at 5:41 PM, MilesTogoe > >>>>> wrote: > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>> On 09/29/2010 11:49 AM, Randall Leeds wrote: > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>> The wiki page linked by Michael has all the info you should need. Try > >>>>>>> reading and understanding the steps for Ubuntu there. If any of it > >>>>>>> confuses > >>>>>>> you please ask. Pay particular attention to the configure options that > >>>>>>> specify where SpiderMonkey (xulrunner-dev) is installed. > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> we did follow the wiki page - although it is quite confusing with > >>>>>> numerous > >>>>>> ways to go and many references to libmozjs although it's deprecated for > >>>>>> xulrunner > >>>>>> > >>>>>> we did the symlinks for xulrunner - libmozjs - no success > >>>>>> we tried couchio bin file install - it failed ("unexpected "(" ) > >>>>>> we tried couchio tar file configure - it failed (due to missing > >>>>>> libmozjs) > >>>>>> we even tried to reinstall vers 0.10 (apt-get install couchdb) - but > >>>>>> that > >>>>>> won't respond correctly (ie I guess all the dependencies are now messed > >>>>>> up) > >>>>>> > >>>>>> we've been compiling and installing source pkgs for 10 yrs now but this > >>>>>> has > >>>>>> been the hardest to get working - not sure what the deal is or what is > >>>>>> wrong > >>>>>> with the whole spider-monkey xulrunner vs libmozjs thing but we can't > >>>>>> get > >>>>>> it > >>>>>> working > >>>>>> > >>>>>> not sure what to do at this point. > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>> http://wiki.apache.org/couchdb/Installing_on_Ubuntu > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>>> On 09/28/2010 11:18 PM, Muharem Hrnjadovic wrote: > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>>> On 09/29/2010 03:42 AM, MilesTogoe wrote: > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>> we had to remove the conflicting ubuntu version 0.10 but now we're > >>>>>>>>>> getting the spidermonkey jsapi header missing error > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>> What Ubuntu version is this? Can you please also paste the build > >>>>>>>>> errors > >>>>>>>>> you are getting? > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>> ubuntu 10.04 > >>>>>>>> > >>>>>>>> checking for js/jsapi.h... no > >>>>>>>> configure: error: Could not find the jsapi header. > >>>>>>>> > >>>>>>>> Are the Mozilla SpiderMonkey headers installed? > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>> we tried: sudo ln -s /usr/lib/xulrunner-1.9.2.10/libmozjs.so > >>>>>>>>>> /usr/lib/libmozjs.so > >>>>>>>>>> > >>>>>>>>>> but still getting the error - > >>>>>>>>>> > >>>>>>>>>> a) is there some other fix or or do we have conflicting syntax > >>>>>>>>>> > >>>>>>>>>> b) if we're using node with v8 installed - do we even need > >>>>>>>>>> spidermonkey > >>>>>>>>>> headers ? > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>>> wget http://couchdb.apache.org/downloads.html > >>>>>>>>>>> sudo apt-get build-dep couchdb > >>>>>>>>>>> tar xvzf apache-couchdb-1.0.1.tar.gz > >>>>>>>>>>> cd apache-couchdb-1.0.1 > >>>>>>>>>>> xulrunner -v > >>>>>>>>>>> sudo ./configure --prefix=/usr/local/ > >>>>>>>>>>> --with-js-lib=/usr/lib/xulrunner- > >>>>>>>>>>> devel-1.9.2.10/lib --with-js-include=/usr/lib/xulrunner-devel- > >>>>>>>>>>> 1.9.2.10/include > >>>>>>>>>>> sudo make > >>>>>>>>>>> sudo make install > >>>>>>>>>>> > >>>>>>>>>>> sudo vi /etc/passwd change couchdb => > >>>>>>>>>>> /usr/local/var/lib/couchdb > >>>>>>>>>>> sudo chown -R couchdb: /usr/local/var/{lib,log,run}/couchdb > >>>>>>>>>>> /usr/local/etc/couchdb > >>>>>>>>>>> sudo chmod 0770 /usr/local/var/{lib,log,run}/couchdb/ > >>>>>>>>>>> sudo chmod 664 /usr/local/etc/couchdb/*.ini > >>>>>>>>>>> sudo chmod 775 /usr/local/etc/couchdb/*.d > >>>>>>>>>>> > >>>>>>>>>>> cd /etc/init.d > >>>>>>>>>>> sudo ln -s /usr/local/etc/init.d/couchdb couchdb > >>>>>>>>>>> sudo /etc/init.d/couchdb start > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>> Best regards/Mit freundlichen Grüßen > >>>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> You never responded to the query: > >>>>> > >>>>> Does: > >>>>> > >>>>> ls /usr/lib/xulrunner-devel-1.9.2.10/include > >>>>> > >>>>> show anything? > >>>>> > >>>>> > >>>>> > >>>>> > >>>> yes, it does show all the headers including jsapi.h - > >>>> > >>>> btw here are file permissions - > >>>> laptop:~$ ls -l /usr/lib/xulrunner-devel-1.9.2.10/include/jsapi.h > >>>> -rw-r--r-- 1 root root 105538 2010-09-15 09:52 > >>>> /usr/lib/xulrunner-devel-1.9.2.10/include/jsapi.h > >>>> > >>>> @laptop:~$ ls -l /usr/lib/libmozjs* > >>>> lrwxrwxrwx 1 root root 45 2010-09-30 15:16 /usr/lib/libmozjs.so -> > >>>> /usr/lib/xulrunner-devel-1.9.2.10/libmozjs.so > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>> Your error is that configure can't find the headers, yet you're > >>>>> focusing on symlinking the library so ld can find it. > >>>>> > >>>>> You appear to have used a ./configure command using --with-js-include > >>>>> which is the correct method for this situation, the question is just > >>>>> if you're pointing it at the right place. > >>>>> > >>>>> Recently I think a common error is that Ubuntu has upgraded the > >>>>> xulrunner version which broke scripts for various people. > >>>>> > >>>>> HTH, > >>>>> Paul Davis > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>> > >>>> > >>>> > >>> > >>> > >> > >> > > > Daniel E. Himes, Ph.D. President Virtual Learning Environment Solutions, Inc. 4 Bartlett St ~ Marblehead Massachusetts ~ 01945-2720 781.277.1151 --=-mTWK4wCJ8cCv8j4k6t/P--