apache and perl modules

From: labzilla (who_at_where.org)
Date: 05/27/05


Date: Thu, 26 May 2005 22:12:21 GMT

I have a perl script that uses the DBD module that works from the command
line. But this same script will not run within apache. It looks like
the perl script can't load the module properly from within apache.

[Thu May 26 11:29:20 2005] [error] [client xxx.xxx.235.42] Uncaught exception from user code:
[Thu May 26 11:29:20 2005] [error] [client xxx.xxx.235.42] \tinstall_driver(Oracle) failed: Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.9.0: cannot open shared object file: No such
file or directory at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
[Thu May 26 11:29:20 2005] [error] [client xxx.xxx.235.42] at (eval 14) line 3
[Thu May 26 11:29:20 2005] [error] [client xxx.xxx.235.42] Compilation failed in require at (eval 14) line 3.
[Thu May 26 11:29:20 2005] [error] [client xxx.xxx.235.42] Perhaps a required shared library or dll isn't installed where expected
[Thu May 26 11:29:20 2005] [error] [client xxx.xxx.235.42] at /var/www/cgi-bin/test.pl line 37
[Thu May 26 11:29:20 2005] [error] [client xxx.xxx.235.42] at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/DBI.pm line 733
[Thu May 26 11:29:20 2005] [error] [client xxx.xxx.235.42] \tDBI::install_driver('DBI', 'Oracle') called at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/DBI.pm line 573



Relevant Pages

  • Re: Calling a perl script from an html doc
    ... > created as html files on a linux server, and they pop up in IE6 on our local ... Maybe you need to re-think this and write a perl script that collects the data ... You can use CGI with the Apache webserver and execute perl scripts either by ...
    (comp.lang.perl.misc)
  • Re: HOW to rename a NPH script ?
    ... On Fri, 18 Aug 2006, Sherm Pendley wrote: ... I want the PERL script to tell apache, ... you cannot do that from inside the Perl script. ... but not for the user's browser. ...
    (comp.lang.perl.misc)
  • Re: PHP in a Perl Script
    ... > except that the perl script also writes out some PHP processing. ... I assume this is on Apache ... ...
    (comp.lang.perl.misc)
  • Re: Making a .php page a .cgi page
    ... > Perl script yet ends in .cgi Apache is saying "Exec format error: ...
    (comp.lang.php)
  • Re: Is there free SQL or Oracle servers for FC4?
    ... > I need t write perl script to work with one of the subject-servers. ... > will work with SQL? ... though the DBD module that is appropriate for the target database. ... use MySQL or PostgreSQL but there are DBD modules for about everything. ...
    (Fedora)