Re: DBI - DBD-DB2 Problem - Please help



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.
.



Relevant Pages

  • Re: DBI - DBD-DB2 Problem - Please help
    ... I can run my index.cgi program without error against a db2 Database from command line! ... 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. ... GNU General Public License, which may be found in the Perl 5 source kit. ...
    (comp.lang.perl.misc)
  • Re: Wait for background processes to complete
    ... To be able to execute commands in the background and wait for their ... The documentation I am referring to is http://perldoc.perl.org/. ... You can run a command in the background with: ... There is a general problem with perl documentation: ...
    (comp.lang.perl.misc)
  • Re: Perl For Amateur Computer Programmers
    ... >professional computer programmers could use with the same ease as Basic. ... >Perl For Amateur Computer Programmers ... Also, taking into account that you're appealing to "scientists", it ... Also, as a side note, you seem to use the noun "command" in a naive ...
    (comp.lang.perl.misc)
  • Obtaining complete Unix command line that evoked script as string
    ... If there is a more appropriate list for this, let me know; the other perl lists I've seen seem to specialised for this. ... Note this is not just the arguments of the call to the script, but everything including pipes and redirects, etc., e.g. ... Ideally the perl interpreter would grab the complete command line as its evoked and I'd access this via a variable. ...
    (perl.beginners)
  • Re: CLOSING Re: Obtaining complete Unix command line that evoked script as string
    ... > To: Grant Jacobs; beginners perl ... > perl and less, much less passing that information along to either ... Only shell that launched them is keeping track of the I/O ... > command is executed. ...
    (perl.beginners)