SPUG: CGI and DBI_File not playing nice

Tim Rosmus trosmus at nwnexus.net
Wed Feb 15 10:02:05 PST 2006

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
                Tim Rosmus <trosmus at nwnexus.net>
                   Postmaster / USENET / DNS
                Northwest Nexus Inc. / NetOS Inc.

More information about the spug-list mailing list