Hello!
#!/usr/local/bin/perl use strict; use DBI; use DBD::Oracle;
I run the code above and I get the following error:

Can't locate loadable object for module DBD::Oracle in @INC
(@INC contains: c:/s trawberry/perl/site/lib
c:/strawberry/perl/vendor/lib c:/strawberry/perl/lib .)
at OracleConnect.pl line 4
Compilation failed in require at OracleConnect.pl line 4.
BEGIN failed--compilation aborted at OracleConnect.pl line 4.


Note that I was having some trouble with the installation due to a firewall. I ended up copying and pasting the source files oracle.pm and object.pm from the cpan website and placing them in the following directories:
oracle.pm is located at C:\strawberry\perl\vendor\lib\DBD
object.pm is located at C:\strawberry\perl\vendor\lib\DBD\Oracle
This stopped giving me the "can't locate perl modules in @INC" error, but now I am getting the new one shown above.

• I read somewhere that you have to go into the oracle.pm file and change the $Oracle_Home variable. Does anyone know if this is correct or what to change it to?
• I would also like to mention that when I open Oracle.pm in Komodo there are a few errors that say:
"DBD::Oracle::AUTHORITY" used only once: possible typo.
Does this error matter (because the compiler does not complain about it)?

Thanks!
TazEngr

In reply to Can't locate loadable object for module DBD::Oracle by tazengr

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.