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