Click here to get back home

DBI_DB2 problems

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
DBI_DB2 problems enoumen 06-02-2006
---> Re: DBI_DB2 problems harryfmudd [AT]...06-02-2006
Get Chitika Premium
Posted by enoumen on June 2, 2006, 5:24 pm
Please log in for more thread options


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/DB/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


Posted by harryfmudd [AT] comcast [DOT] on June 2, 2006, 7:41 pm
Please log in for more thread options


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/DB/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

Posted by enoumen on June 4, 2006, 3:08 pm
Please log in for more thread options


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/DB/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


Similar ThreadsPosted
Problems using GD.pm January 8, 2005, 8:05 pm
Problems when using Net::MSN 1.022 May 4, 2005, 1:20 pm
LWP problems July 11, 2005, 3:50 pm
PPM Problems on Win.XP November 5, 2007, 4:26 pm
LWP Problems (Authentication?) September 5, 2004, 7:12 am
Net::FTP mdtm problems December 14, 2004, 11:00 pm
Problems with Parse::Lex May 5, 2005, 8:22 pm
CGI.pm: encoding problems June 9, 2006, 10:53 am
Test::Pod problems March 3, 2007, 1:04 am
problems with Date-Calc July 8, 2004, 3:09 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap