Can't locate String::Approx.pm

Discussion in 'Perl' started by JVarsoke, Feb 28, 2004.

  1. JVarsoke

    JVarsoke Guest

    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
    JVarsoke, Feb 28, 2004
    #1
    1. Advertising

  2. JVarsoke

    Joe Smith Guest

    JVarsoke wrote:

    > 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
    Joe Smith, Feb 28, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    24
    Views:
    612
    jeffc
    Oct 24, 2003
  2. Michael Hertz
    Replies:
    0
    Views:
    313
    Michael Hertz
    Sep 19, 2004
  3. Michael Hertz
    Replies:
    3
    Views:
    434
    Peter Flynn
    Sep 22, 2004
  4. Istvan Albert
    Replies:
    0
    Views:
    435
    Istvan Albert
    Aug 31, 2003
  5. Puri

    String::Approx 'aindex' help

    Puri, Aug 24, 2005, in forum: Perl Misc
    Replies:
    5
    Views:
    246
Loading...

Share This Page