Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

trouble installing Class::DBI::Loader::Oracle

by hnhegde (Novice)
on Jun 04, 2010 at 12:24 UTC ( [id://843101]=perlquestion: print w/replies, xml ) Need Help??

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

Folks,

While trying to install Class::DBI::Loader::Oracle, make test fails with the following message:

root@devserver-165# make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.t ....... 1/1 # Failed test 'use Class::DBI::Loader::Oracle;' # at t/00-load.t line 4. # Tried to use 'Class::DBI::Loader::Oracle'. # Error: Can't locate object method "set_sql" via package "Class: +:DBI::Oracle" at /usr/local/share/perl/5.8.8/Class/DBI/Oracle.pm line + 172. # Compilation failed in require at /root/.cpan/build/Class-DBI-Loader- +Oracle/blib/lib/Class/DBI/Loader/Oracle.pm line 7. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. # Looks like you failed 1 test of 1. t/00-load.t ....... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests t/01-basic.t ...... ok t/pod-coverage.t .. skipped: Test::Pod::Coverage 1.04 required for tes +ting POD coverage t/pod.t ........... ok Test Summary Report ------------------- t/00-load.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=4, Tests=8, 29 wallclock secs ( 0.04 usr 0.02 sys + 0.28 cusr + 0.04 csys = 0.38 CPU) Result: FAIL Failed 1/4 test programs. 1/8 subtests failed. make: *** [test_dynamic] Error 255 root@devserver-165#
I read the README for this module and have the dependencies installed as well as ORACLE_HOME and ORACLE_USERID set. Can somebody please shed some light?

Thanks,

harsha

Replies are listed 'Best First'.
Re: trouble installing Class::DBI::Loader::Oracle
by toolic (Bishop) on Jun 04, 2010 at 12:56 UTC
    You may want to consider using a different module. Here are a couple of red flags:
    • CPAN Testers report no passing tests.
    • Here is a quote from the Class::DBI::Loader::Oracle POD: "This module needs a new maintainer, because I no longer use Class::DBI and have no further interest in maintaining this module."

    Of course, you are encouraged to fight through these issues and adopt the module as your own. That will require you to understand the Makefile and the Perl source code for the module.

Re: trouble installing Class::DBI::Loader::Oracle
by Anonymous Monk on Jun 04, 2010 at 13:19 UTC
    t/00-load.t ....... Dubious, test returned 1 (wstat 256, 0x100) t/01-basic.t ...... ok t/pod-coverage.t .. skipped: Test::Pod::Coverage 1.04 required for tes +ting POD coverage t/pod.t ........... ok

    You'll notice t/01-basic.t was not skipped, and it passed all tests. So you can ignore the failure of 00-load.t, and force install Class::DBI::Loader::Oracle.

    If you compare t/01-basic.t and t/00-load.t , you can see that missing from Class/DBI/Loader/Oracle.pm is

    use DBD::Oracle; use Class::DBI::Oracle; use Class::DBI::Loader;
      Thanks Folks. I was able to force install it and get working.
        The attached patch to Class::DBI:Loader::Oracle resolves the issue. Class-DBI-Loader-Oracle : make test cp lib/Class/DBI/Loader/Oracle.pm blib/lib/Class/DBI/Loader/Oracle.pm PERL_DL_NONLAZY=1 "/usr/bin/perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.t ....... ok t/01-basic.t ...... ok t/pod-coverage.t .. skipped: Test::Pod::Coverage 1.04 required for testing POD coverage t/pod.t ........... skipped: Test::Pod 1.14 required for testing POD All tests successful. Files=4, Tests=7, 2 wallclock secs ( 0.09 usr 0.02 sys + 0.40 cusr 0.20 csys = 0.71 CPU) Result: PASS ==== patch - start ==== *** lib/Class/DBI/Loader/Oracle.pm~ 2008-02-19 18:33:26.000000000 -0500 --- lib/Class/DBI/Loader/Oracle.pm 2014-12-04 14:00:57.523394700 -0500 *************** *** 4,9 **** --- 4,10 ---- use strict; use DBI; use Carp; + use Class::DBI; require Class::DBI::Oracle; use base 'Class::DBI::Loader::Generic'; use vars '$VERSION'; ==== patch - end ====

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://843101]
Approved by toolic
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-19 01:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found