Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- opensuse 11.3 @INC FAIL
June 3, 2011, 11:58 am
rate this thread
happens via a little (provided) perl script (below). However openSUSE
11.3, perl 5.12.1 fails with this error.
Can't locate NDBM_File.pm in @INC (@INC contains:
/usr/lib/perl5/5.12.1/i586-linux-thread-multi /usr/lib/perl5/5.12.1 .)
at ./makepassword.pl line 2.
The NDBM_File.pm module does exist, in /usr/lib/perl5/5.12.1/Memoize.
That makes me think something in the perl environment has not been set
up right. Neither Google nor the archives of this group show anyone
else having this problem, but maybe no-one builds INN news servers
anymore? The same script runs flawlessly on my FreeBSD 8.2 box, so I
think it's the openSUSE 11.3 environment, not the script that's at
Q: Anyone aware of openSUSE's packaged Perl 5.12 being weird?
Q: Anyone aware of something that would make an older Perl script fail
under 5.12? Or, has NDBM_File been deprecated?
Q: Any environment variables I should be aware of and change so Perl
knows where to find this module?
tie (%db, 'NDBM_File', '/home/randymon/eatme', O_RDWR|O_CREAT,
or die "Cannot open /path/to/database: $!\n";
$| = 1;
print "Username: ";
my $user = <STDIN>;
print "Password: ";
my $passwd = <STDIN>;
my @alphabet = ('.', '/', 0..9, 'A'..'Z', 'a'..'z');
my $salt = join '', @alphabet[rand 64, rand 64];
$db = crypt ($passwd, $salt);
Re: opensuse 11.3 @INC FAIL
That is not the NDBM_File module, that is the Memoize::NDBM_File module.
Looks to me like you do not have the NDBM_File module installed.
email: perl -le "print scalar reverse qq/moc.liamg0cm.j.dat/"
The above message is a Usenet post.
I don't recall having given anyone permission to use it on a Web site.
- » Posting Guidelines for comp.lang.perl.misc ($Revision: 1.9 $)
- — Previous thread in » PERL Discussions