Perlfect Solutions
 

[Perlfect-search] Error using DB_File from a CGI script

perlfect-search@perlfect.com perlfect-search@perlfect.com
Sat, 6 Jul 2002 10:26:41 -0400
The install went fine, the indexing went fine, but search.pl fails.

Here is what is in the logs:

Can't load '/hq/u1/rhanson/perl5lib/sun4-solaris/auto/DB_File/DB_File.so' for module 
DB_File: ld.so.1: /usr/bin/perl: fatal: /hq/u1/rhanson/lib/libdb-4.0.so: Permission denied 
at /opt/perl-5.6.1/lib/5.6.1/sun4-solaris/XSLoader.pm line 75.
 at /hq/u1/rhanson/perl5lib/sun4-solaris/DB_File.pm line 236
Compilation failed in require at /u02/content/technews/cgi-bin/perlfect/search/search.pl 
line 47.
BEGIN failed--compilation aborted at /u02/content/technews/cgi-
bin/perlfect/search/search.pl line 47.
[Sat Jul  6 10:05:22 2002] [error] [client 10.1.87.3] Premature end of script headers: 
/u02/content/technews/cgi-bin/perlfect/search/search.pl

Troubleshooting so far:

1. The file DB_File.so is readable by all
2. Using DB_File from the command line works.
3. The line "use DB_File" alone in a CGI fails with same error.

Any ideas?

I'm thinking it is a permissions problem, but I'm not sure on which file.  Neither Berkley 
DB or DB_File were installed as root, but I don't think that should make a difference, 
should it?

Rob