Re: grapher.cgi

"Geoffrey Schwartzreich" <[email protected]>
Newsgroups gmane.network.cricket.user
Message-ID <[email protected]>
It does sound like a perl library-path issue.

One possibility is that the user that built the DB_File module had a
different library path than other users.

What does 'echo $LD_LIBRARY_PATH' for the different users show? Also, what
is the output of 'crle'? Is the libdb shared object in /usr/local/lib by
chance?

If so, you will likely need to update your library search path. The best way
to do this is to use 'crle' with the -u and -l options together to update
the system search path. I.E. 'crle -u -l /usr/local/lib'.

However, that may not be enough for apache. If you modify the runtime linker
environment and apache still refuses to find the library, you can always put
an explicit 'LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib; export
LD_LIBRARY_PATH' into your apache startup script. Be aware that if you do
this, you will need to define 'PassEnv LD_LIBRARY_PATH' in your httpd.conf
in order to update the execution environment passed to CGI programs.
Obviously, this has security ramifications, and should be evaluated against
your security policy.

Geoff

>Date: Mon, 24 Apr 2006 18:52:13 -0500
>From: Rick Frey <[email protected]>
>To: [email protected]
>Subject: Re: [cricket-users] grapher.cgi
>
>Appears that libdb-4.4.so is not in library path or don't have
>permission to read it as Apache user (or as yourself).
>Does running `ldd
>/usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DB_File/DB_File.so` as
>either user show that libdb-4.4.so is not found?
>
>
>
>Hurgh wrote:
>> Hi Kevin,
>>
>> Thanks for your quick reply.
>>
>> I tried what you suggested, once as root, once as cricket and once
>> logged in as myself.
>>
>> Both root and cricket worked fine (got HTML Returned), but when i
>> tried logged in as myself i got the same error:
>>
>>
>> Can't load
>> '/usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/DB_File/DB_File.so' for
>> module DB_File: ld.so.1: /usr/perl5/5.8.4/bin/perl: fatal:
>> libdb-4.4.so <http://libdb-4.4.so>: open failed: No such file or
>> directory at /usr/perl5/5.8.4/lib/i86pc-solaris-64int/XSLoader.pm line
>> 68.
>>  at /usr/perl5/5.8.4/lib/i86pc-solaris-64int/DB_File.pm line 251
>> Compilation failed in require at
>> /export/home/cricket/cricket/lib/ConfigTree/Cache.pm line 21.
>> BEGIN failed--compilation aborted at
>> /export/home/cricket/cricket/lib/ConfigTree/Cache.pm line 21.
>> Compilation failed in require at
>> /export/home/cricket/public_html/grapher.cgi line 50.
>> BEGIN failed--compilation aborted at
>> /export/home/cricket/public_html/grapher.cgi line 50.
>>
>> So it seems like it is Perl search path problem
>>
>> Is there anyone on the list that could help me with this, if not
>> anyone got any suggestions as to where i could find one :) (i will try
>> the perl list if all else fails :))
>>
>> Thanks again for your help Kevin, and also for your quick reply.
>>
>> -hurgh-
>>
>>
>>





-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.