opensuse 11.3 @INC FAIL

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'm building an openSUSE 11.3 INN server; user/password authentication
happens via a little (provided) perl script (below).  However openSUSE
11.3, perl 5.12.1 fails with this error.

Can't locate in @INC (@INC contains:
/usr/lib/perl5/5.12.1/i586-linux-thread-multi /usr/lib/perl5/5.12.1 .)
at ./ line 2.

The 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?

               use NDBM_File;
               use Fcntl;
               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>;
               chomp $user;
               print "Password: ";
               my $passwd = <STDIN>;
               chomp $passwd;
               my @alphabet = ('.', '/', 0..9, 'A'..'Z', 'a'..'z');
               my $salt = join '', @alphabet[rand 64, rand 64];
               $db = crypt ($passwd, $salt);
               untie %db;

Re: opensuse 11.3 @INC FAIL

Quoted text here. Click to load it

That is not the NDBM_File module, that is the Memoize::NDBM_File module.

Quoted text here. Click to load it

Looks to me like you do not have the NDBM_File module installed.

Tad McClellan
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.

Re: opensuse 11.3 @INC FAIL

Quoted text here. Click to load it
Thank you - a simple check reveals you are correct.  I owe you a beer!

Site Timeline