Re: DBI - DBD-DB2 Problem - Please help
- From: "J. Gleixner" <glex_no-spam@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 02 Jun 2005 15:29:52 -0500
Dieter Brensteiner wrote:
Hi !
I can run my index.cgi program without error against a db2 Database from command line !
There are no errors at all.
When I try to run the index.cgi file on my apache redhat ws4 i get the following error:
install_driver(DB2) failed: Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/DB2/DB2.so' for module DBD::DB2: libdb2.so.1: 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.
at (eval 3) line 3
Compilation failed in require at (eval 3) line 3.
Perhaps a required shared library or dll isn't installed where expected
at /var/www/htdocs/csc/index.cgi line 113
Please can anybody help ? Urgently
thanx guys...
Possibly your web server is running a different version of perl. Typically it's due to your PATH environment variable being different from the user running the web server.
If running "perl -v", from your command line doesn't show something like: "This is perl, v5.8.5...", that's the issue. The best fix for that is to install DBD::DB2 using the perl5.8.5 version.
/path/to/bin/perl5.8.5 Makefile.PL etc.
or use CPAN. .
- Follow-Ups:
- Re: DBI - DBD-DB2 Problem - Please help
- From: Dieter Brennsteiner
- Re: DBI - DBD-DB2 Problem - Please help
- Prev by Date: Re: Suppression of error messages if a regex does not match
- Next by Date: Sending commands to new shell in Perl
- Previous by thread: FAQ 8.14 How do I modify the shadow password file on a Unix system?
- Next by thread: Re: DBI - DBD-DB2 Problem - Please help
- Index(es):
Relevant Pages
|