Can't locate String::Approx.pm

J

JVarsoke

I'm trying to use pgpenvelope and I keep getting the message:

Can't locate loadable object for module String::Approx in @INC (@INC
contains: /usr/lib/perl5/5.8.0/i586-linux-thread-multi . . .

But
hostname:/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/String
# ls -al
total 32
drwxr-xr-x 2 root root 4096 2004-02-28 01:37 .
drwxr-xr-x 24 root root 4096 2004-02-27 13:37 ..
-rw-r--r-- 1 root root 24263 2003-11-29 15:50 Approx.pm
hostname:/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/String
#

Strangely, perl -MCPAN -e 'install String::Approx' thinks it's
installed. And if I execute a perl Makefile.PL that uses
String::Approx as a requirement when I'm logged in as root it find it,
but if logged in as another user it can't. Yet as you can see above
the permissions are correct. (the permissions on
i586-linux-thread-multi and parents are also correct).

So why is this not installed correctly? And how do I fix it?

btw: for some strange reason all modules are installed so only root
can see them (umask?). Is this correct default behavior? Is there a
command-line switch that would correct this (as changing root's umask
is undesirable)?

-jason
 
J

Joe Smith

JVarsoke said:
I'm trying to use pgpenvelope and I keep getting the message:

Can't locate loadable object for module String::Approx in @INC (@INC
contains: /usr/lib/perl5/5.8.0/i586-linux-thread-multi . . .

A loadable object is something like ".../auto/String/Approx/Approx.so".
-rw-r--r-- 1 root root 24263 2003-11-29 15:50 Approx.pm
hostname:/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/String

That's just one of the files.
when I'm logged in as root it find it,
but if logged in as another user it can't. Yet as you can see above
the permissions are correct. (the permissions on
i586-linux-thread-multi and parents are also correct).

Go check
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/String/Approx/*

Please post to comp.lang.perl.misc next time.
-Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top