Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Not finding NDBM_File.pm

by dirtdog (Monk)
on Apr 07, 2020 at 16:47 UTC ( [id://11115170]=perlquestion: print w/replies, xml ) Need Help??

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

Hi Monks, I'm stumped as to why the NDBM_File.pm module is not being found even though i see it in the Oracle perl package version v5.22.0

..oracle/product/12.2.0.1/perl/lib/5.22.0/Memoize>ls -ltr NDBM_File.pm -rwxr-xr-x 1 oracle dba 1488 May 12 2016 NDBM_File.pm

..oracle/product/12.2.0.1/perl/lib/5.22.0 is in my PERL5LIB dir and when i run perl -V i see the following dirs:

/.../oracle/product/12.2.0.1/perl/lib/site_perl/5.22.0/x86_64-linux-thread-multi .../oracle/product/12.2.0.1/perl/lib/site_perl/5.22.0 .../oracle/product/12.2.0.1/perl/lib/site_perl/5.22.0/x86_64-linux-thread-multi .../oracle/product/12.2.0.1/perl/lib/site_perl/5.22.0 .../oracle/product/12.2.0.1/perl/lib/5.22.0/x86_64-linux-thread-multi .../oracle/product/12.2.0.1/perl/lib/5.22.0

yet i get this error:

Can't locate NDBM_File.pm in @INC (you may need to install the NDBM_File module) (@INC contains: /.../oracle/product/12.2.0.1/perl/lib/site_perl/5.22.0/x86_64-linux-thread-multi /.../oracle/product/12.2.0.1/perl/lib/site_perl/5.22.0 /.../oracle/product/12.2.0.1/perl/lib/5.22.0/x86_64-linux-thread-multi /.../oracle/product/12.2.0.1/perl/lib/5.22.0 /.../oracle/product/12.2.0.1/perl/lib/site_perl/5.22.0/x86_64-linux-thread-multi /.../oracle/product/12.2.0.1/perl/lib/site_perl/5.22.0 /.../oracle/product/12.2.0.1/perl/lib/5.22.0/x86_64-linux-thread-multi /.../oracle/product/12.2.0.1/perl/lib/5.22.0 .). BEGIN failed--compilation aborted.

Perms are ok so it's definitely not that.

Any help would be greatly appreciated!

thanks

Replies are listed 'Best First'.
Re: Not finding NDBM_File.pm
by haukex (Archbishop) on Apr 07, 2020 at 17:00 UTC
    ..oracle/product/12.2.0.1/perl/lib/5.22.0/Memoize>ls -ltr NDBM_File.pm -rwxr-xr-x 1 oracle dba 1488 May 12 2016 NDBM_File.pm

    What you've found there is Memoize::NDBM_File, not NDBM_File. You need to check directly in the directories listed for @INC in that error message, not any of their subdirectories. Do you have that file there?

    By the way, please use <code> tags to format input/output/code.

      ok. I didn't realize that Memoize::NDBM_File was different.... that is the only version i have.

      I do have it in our old 5.10 libraries in ....5.10.0/x86_64-linux-thread-multi/NDBM_File.pm

      Could i just have that copied over to 5.22.0/x86_64-linux-thread-multi ?

        Could i just have that copied over to 5.22.0/x86_64-linux-thread-multi ?

        No, that that almost certainly won't work - IIRC it contains code that needs to be compiled, and even if it didn't, it's rarely a good idea to copy files into @INC directories manually. Unfortunately I don't know much about the Oracle Perl package, so I can't say whether they've simply stopped supporting it or if there's some other way to install it. Perhaps another Monk knows more (or the Oracle support does. That's why people pay for it, right? ;-) ).

Re: Not finding NDBM_File.pm
by Anonymous Monk on Apr 08, 2020 at 02:45 UTC

    Can't locate NDBM_File.pm in @INC (you may need to install the NDBM_File module) (@INC contains: /.../oracle/product/12.2.0.1/perl/lib/site_perl/5.22.0/x86_64-linux-thread-multi /.../oracle/product/12.2.0.1/perl/lib/site_perl/5.22.0 /.../oracle Any help would be greatly appreciated!

    Forget that NDBM_File exists, pretend that it doesn't exist?

    Its kinda like looking for ctime.pl

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (1)
As of 2024-04-24 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found