Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Can't locate loadable object for module DBD::Oracle

by tazengr (Novice)
on Feb 26, 2012 at 06:43 UTC ( [id://956207]=perlquestion: print w/replies, xml ) Need Help??

tazengr has asked for the wisdom of the Perl Monks concerning the following question:

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

Replies are listed 'Best First'.
Re: Can't locate loadable object for module DBD::Oracle
by Anonymous Monk on Feb 26, 2012 at 06:47 UTC

    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:

    This has zero chance of working. Read the README/INSTALL file and follow the instructions. Or download a ppmx file and follow instructions.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://956207]
Approved by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-18 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found