dbTalk Databases Forums  

ingres/apache/linux/DBD

comp.databases.ingres comp.databases.ingres


Discuss ingres/apache/linux/DBD in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dennis Roesler
 
Posts: n/a

Default ingres/apache/linux/DBD - 03-18-2005 , 02:04 PM






Linux:
Fedora Core release 3 (Heidelberg)
Kernel 2.6.10-1.770_FC3 on an i686
Ingres: II 3.0.1 (int.lnx/109)
Apache: 2.0
Perl: v5.8.5

This isn't really an ingres question per se, but I thought someone may
have run into this and know what the fix is.

When I try an http access to a perl cgi script that uses DBI I get the
error shown below. I've SetEnv for II_SYSTEM and LD_LIBRARY_PATH in
httpd.conf but that doesn't seem to have any effect (I use the same
value that I use for ingres' or root's .profile). I have no problem
running the script as the ingres user, or as root, from the command line.

I was reading a comment in the Dynaloader.pm module that says this error
could be misleading. Other perl scripts work ok from Apache.

Thanks

Dennis
d underscore roesler at agilent dot com

install_driver(Ingres) failed: Can't load
'/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/Ingres/Ingres.so'
for module DBD::Ingres: libinterp.1.so: 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 2) line 3

Reply With Quote
  #2  
Old   
Emiliano
 
Posts: n/a

Default Re: ingres/apache/linux/DBD - 03-18-2005 , 04:21 PM






Dennis Roesler wrote:
Quote:
Linux:
Fedora Core release 3 (Heidelberg)
Kernel 2.6.10-1.770_FC3 on an i686
Ingres: II 3.0.1 (int.lnx/109)
Apache: 2.0
Perl: v5.8.5

This isn't really an ingres question per se, but I thought someone may
have run into this and know what the fix is.

When I try an http access to a perl cgi script that uses DBI I get the
error shown below. I've SetEnv for II_SYSTEM and LD_LIBRARY_PATH in
httpd.conf but that doesn't seem to have any effect (I use the same
value that I use for ingres' or root's .profile). I have no problem
running the script as the ingres user, or as root, from the command line.
Have you tried running this script as the apache user?

Emile


Reply With Quote
  #3  
Old   
Dennis Roesler
 
Posts: n/a

Default Re: ingres/apache/linux/DBD - 03-21-2005 , 08:35 AM



Thanks to those that replied.

I ended up reinstalling RH/Ingres/DBI/DBD and starting fresh. I'm not
sure what I had hosed before, but after the reinstall I needed to SetEnv
in httpd.conf for II_SYSTEM and LD_LIBRARY_PATH.

What's interesting is when reinstalling DBD I needed to add -ldnet_stub
to abflnk.opt as documented in the README for DBD. I don't remember
having to do this the first time and DBI/DBD worked for perl scripts
running from the command line :-(.

Dennis

Dennis Roesler wrote:
Quote:
Linux:
Fedora Core release 3 (Heidelberg)
Kernel 2.6.10-1.770_FC3 on an i686
Ingres: II 3.0.1 (int.lnx/109)
Apache: 2.0
Perl: v5.8.5

This isn't really an ingres question per se, but I thought someone may
have run into this and know what the fix is.

When I try an http access to a perl cgi script that uses DBI I get the
error shown below. I've SetEnv for II_SYSTEM and LD_LIBRARY_PATH in
httpd.conf but that doesn't seem to have any effect (I use the same
value that I use for ingres' or root's .profile). I have no problem
running the script as the ingres user, or as root, from the command line.

I was reading a comment in the Dynaloader.pm module that says this error
could be misleading. Other perl scripts work ok from Apache.

Thanks

Dennis
d underscore roesler at agilent dot com

install_driver(Ingres) failed: Can't load
'/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/Ingres/Ingres.so'
for module DBD::Ingres: libinterp.1.so: 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 2) line 3

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.