SPUG: CGI and DBI_File not playing nice

Orr, Chuck (NOC) chuck.orr at cingular.com
Wed Feb 15 11:58:44 PST 2006


This is working now.  Thanks again for your help.  This dramatically
enhanced performance.

Thanks,
Chuck

-----Original Message-----
From: Tim Rosmus [mailto:trosmus at nwnexus.net] 
Sent: Wednesday, February 15, 2006 10:02 AM
To: Orr, Chuck (NOC)
Cc: spug-list at pm.org
Subject: Re: SPUG: CGI and DBI_File not playing nice


On Wed, 15 Feb 2006, Orr, Chuck  (NOC) wrote:

|#      I am trying to use a tied hash to speed up a cgi application.
The
|# tied data structure works well as long as I do lookups from perl 
|running # on the same machine.  When I use CGI and there is a web 
|interface, the # following error pops up: #
|# Can't load
|#
'/usr/perl5/5.6.lib/5.6.1/sun4-solaris-thread-multi/auto/DB_File/DB_File
|# /DB_File.so' for module DB_File:  ld.so.1:  lookup_uber_hash.cgi:
|# fatal:  libgcc_s.so.1: open failed:  No such file or directory at
|# /usr/perl5/5.6/lib/5.6.1/sun4-solaris-thread-multi-XSloader.om line
75

When running from the shell you most likely have LD_LIBRARY_PATH
set to include /usr/local/lib.   When Apache starts from boot
this is not set so "libgcc_s.so.1" can not be found as it is not in a
secure library area.

You have 2 choices...

1)  Add the correct LD_LIBRARY_PATH values to your Apache startup
    script in /etc/init.d/xxxxx

2)  Use 'crle' to include /usr/local/lib as a secure library
    area.
-- 
                Tim Rosmus <trosmus at nwnexus.net>
                   Postmaster / USENET / DNS
                Northwest Nexus Inc. / NetOS Inc.


More information about the spug-list mailing list