DBI_DB2 problems

DBI_DB2 problems

am 02.06.2006 23:24:10 von enoumen

I have problems accessing my DB2 database via CGI in web application. I
am receiving this error:
install_driver(DB2) failed: Can't load
'/usr/lib/perl5/site_perl/5.8.3/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.3/i386-linux-thread-multi/DynaLoader.pm line 229.
at (eval 22) line 3
Compilation failed in require at (eval 22) line 3.
Perhaps a required shared library or dll isn't installed where expected
at
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/Bio/D B/Das/Chado.pm
line 135

I have read on googlegroup that i should setenv the LD_LIBRARY_PATH in
my httpd.conf but i don't know how to do that.
Theres is nothing about that variable in my httpd.conf
Do you know how i can set that variable or is there any other solution?
thank you
xris

Re: DBI_DB2 problems

am 03.06.2006 01:41:43 von unknown

enoumen@gmail.com wrote:
> I have problems accessing my DB2 database via CGI in web application. I
> am receiving this error:
> install_driver(DB2) failed: Can't load
> '/usr/lib/perl5/site_perl/5.8.3/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.3/i386-linux-thread-multi/DynaLoader.pm line 229.
> at (eval 22) line 3
> Compilation failed in require at (eval 22) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at
> /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/Bio/D B/Das/Chado.pm
> line 135
>
> I have read on googlegroup that i should setenv the LD_LIBRARY_PATH in
> my httpd.conf but i don't know how to do that.
> Theres is nothing about that variable in my httpd.conf
> Do you know how i can set that variable or is there any other solution?
> thank you
> xris
>

It sounds to me like you think you have an Apache configuration problem.
If your CGI script runs interactively, I agree with you.

Have you tried reading the Apache documentation?

Have you tried asking in an Apache-oriented newsgroup?

Tom Wyant

Re: DBI_DB2 problems

am 04.06.2006 21:08:13 von enoumen

Hi Harry,
thanks for your message. If this can help anyone, I took my chance and
i solved it by adding to my httpd.conf the line
setenv LD_LIBRARY_PATH /home/db2insts1/sqllib/lib which is the path
to the required DB2 library.

harryfmudd [AT] comcast [DOT] net wrote:
> enoumen@gmail.com wrote:
> > I have problems accessing my DB2 database via CGI in web application. I
> > am receiving this error:
> > install_driver(DB2) failed: Can't load
> > '/usr/lib/perl5/site_perl/5.8.3/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.3/i386-linux-thread-multi/DynaLoader.pm line 229.
> > at (eval 22) line 3
> > Compilation failed in require at (eval 22) line 3.
> > Perhaps a required shared library or dll isn't installed where expected
> > at
> > /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/Bio/D B/Das/Chado.pm
> > line 135
> >
> > I have read on googlegroup that i should setenv the LD_LIBRARY_PATH in
> > my httpd.conf but i don't know how to do that.
> > Theres is nothing about that variable in my httpd.conf
> > Do you know how i can set that variable or is there any other solution?
> > thank you
> > xris
> >
>
> It sounds to me like you think you have an Apache configuration problem.
> If your CGI script runs interactively, I agree with you.
>
> Have you tried reading the Apache documentation?
>
> Have you tried asking in an Apache-oriented newsgroup?
>
> Tom Wyant