Reputation: 59
I am using cygwin on windows to compile perl modules. I was able to install perl DBI through cpan later I installed DBD , it aslo said successfully installed.
cpan[1]> install DBD::Oracle Going to read '/home/e1sched/.cpan/Metadata' Database was generated on Wed, 24 Apr 2013 12:08:01 GMT DBD::Oracle is up to date (1.60).
Now when i execute my script, i am getting this error below.
$ ./invpayhistload.sh 5 50000 Thu, Apr 25, 2013 5:53:31 AM Begin batch process PPID 7580 install_driver(Oracle) failed: Can't locate loadable object for module DBD::Oracle in @INC (@INC contains: /usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/site_perl/5.14 /usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/vendor_perl/5.14 /usr/lib/perl5/5.14/i686-cygwin-threads-64int /usr/lib/perl5/5.14 /usr/lib/perl5/site_perl/5.10 /usr/lib/perl5/vendor_perl/5.10 /usr/lib/perl5/site_perl/5.8 .) at (eval 3) line 3 Compilation failed in require at (eval 3) line 3. Perhaps a module that DBD::Oracle requires hasn't been fully installed at /usr/local/batch/bin/invpayhistload.pl line 33
DBD::Oracle seems to have not installed properly. I tried many times but the result is same. Is there a problem with finding the path? what is this @INC
? Appreciate your reply.
Upvotes: -1
Views: 9101
Reputation: 3508
I doubt that DBD::Oracle
is installed properly. It's notoriously difficult to get is to work. Basically, you need:
LD_LIBRARY_PATH
need to be set right)DBD::Oracle
and run perl Makefile.PL; make
by handsee e.g. this question for more information...
Upvotes: -1