That was the problem! My LD_LIBRARY_PATH value was empty, so I did:
export LD_LIBRARY_PATH=/usr/local/lib
And restarted CouchDB and the view loaded without the {exit_status,127} errors.
Phew, very pleased to have finally got this fixed.
Now working on EC2 Amazon Linux AMI release 2012.03
Martin
On Monday, 3 September 2012 at 14:58, CGS wrote:
> I don't know in your Linux distro how it is, but there are few distros
> which do not have /usr/local/lib in the dynamic linking path. So, use
> either LD_LIBRARY_PATH or, for more permanent solution, see ldconfig (
>
http://linux.die.net/man/8/ldconfig).
>
> To see if you have that path in your dynamic linking environment, check the
> output of "echo $LD_LIBRARY_PATH" or the content of /etc/ld.so.conf (and
> follow the paths there to see if any .conf file contains your path). If you
> prefer ldconfig, just add the path in a .conf file and execute ldconfig
> after.
>
> CGS
>
>
>
>
> On Mon, Sep 3, 2012 at 3:37 PM, Martin Hewitt <
mar...@thenoi.se (mailto:
mar...@thenoi.se)> wrote:
>
> > 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 (
http://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
> > >
> > >
> > >
> >
mar...@thenoi.se (mailto:
mar...@thenoi.se)) (mailto:
> > > >
mar...@thenoi.se (mailto:
mar...@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 <
mar...@thenoi.se (mailto:
mar...@thenoi.se)(mailto: