brian.hines@qwest.co has asked for the wisdom of the Perl Monks concerning the following question:
First, I am on Perl 5.8.8, Apache 2.0.52, Sun Sol 10, using DBI 1.58 and DBD (oracle) 1.19.
I am in the middle of trying to migrate some applications from an old server to new. I have installed all the above and a few other packages, and have some batch type perl scripts running using DBI/DBD just fine. I am now trying to get some programs running that are CGI based. When I try to run my script that uses DBI, I am getting this error in the Apache error log:
I think that DBI is correctly configured in general, as I can run the batch/non-CGI type scripts fine. I looked through other posts and found one indicating some environment settings, so added settings for the LD_LIBRARY_PATH and such to the httpd.conf, but that did not do anything. I also tried to add some addt'l oracle libraries to the @INC so it would match my normal LD_LIBRARY_PATH, that also didn't seem to affect anything:[Wed Aug 15 14:29:18 2007] [error] [client 10.0.112.59] Can't locate +loadable object for module DBI in @INC (@INC contains: /u/netops/perl +/lib/5.8.8/sun4-solaris-64 /u/netops/perl/lib/5.8.8 /u/netops/perl/li +b/site_perl/5.8.8/sun4-solaris-64 /u/netops/perl/lib/site_perl/5.8.8 +/u/netops/perl/lib/site_perl .) at /u/netops/perl/lib/site_perl/5.8.8 +/sun4-solaris-64/DBI.pm line 261 [Wed Aug 15 14:29:18 2007] [error] [client 10.0.112.59] BEGIN failed-- +compilation aborted at /u/netops/perl/lib/site_perl/5.8.8/sun4-solari +s-64/DBI.pm line 261. [Wed Aug 15 14:29:18 2007] [error] [client 10.0.112.59] Compilation fa +iled in require at /u/netops/apache2/cgi-bin/overutilization.perl lin +e 22. [Wed Aug 15 14:29:18 2007] [error] [client 10.0.112.59] BEGIN failed-- +compilation aborted at /u/netops/apache2/cgi-bin/overutilization.perl + line 22. [Wed Aug 15 14:29:18 2007] [error] [client 10.0.112.59] Premature end +of script headers: overutilization.perl
Any help would be *greatly* appreciated! THANKS! BHpush (@INC, "/opt/dbms/oracle/product/ora1020_64/lib", "/usr/lib", "/u +sr/ccs/lib", "/usr/dt/lib");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl/Apache/DBI Config Problem
by almut (Canon) on Aug 15, 2007 at 22:53 UTC | |
|
Re: Perl/Apache/DBI Config Problem
by jZed (Prior) on Aug 15, 2007 at 22:57 UTC | |
|
Re: Perl/Apache/DBI Config Problem
by technojosh (Priest) on Aug 15, 2007 at 21:54 UTC | |
|
Re: Perl/Apache/DBI Config Problem
by brian.hines@qwest.co (Initiate) on Aug 16, 2007 at 15:54 UTC |