Hi - would very much appreciate any help with an issue I am having. I am *very* new to installing/configuring perl/apache, so am probably missing something simple/stupid.... But, here goes.

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:

[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
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:
push (@INC, "/opt/dbms/oracle/product/ora1020_64/lib", "/usr/lib", "/u +sr/ccs/lib", "/usr/dt/lib");
Any help would be *greatly* appreciated! THANKS! BH

In reply to Perl/Apache/DBI Config Problem by brian.hines@qwest.co

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.