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

Hi, I've just installed File::Find::Rule, using the cpan command line. However, i get Can't locate File/Find/Rule.pm in @INC. The command lline tell me that this module is upto date? Also tried this manually! Any suggestions Thanks

20041027 Edit by castaway: Changed title from 'CPAN'

Replies are listed 'Best First'.
Re: Can't locate File::Find::Rule in @INC
by nimdokk (Vicar) on Oct 27, 2004 at 13:04 UTC
    It sounds like you installed onto a Unix box, try to find the actual PM file itself on the system to see if it was installed to the standard location for Perl Modules on your platform. Otherwise, it might have installed it someplace like your user home directory, which would be why it is not in @INC. Try a command like:

    $ find / -name Rule.pm 2>/dev/null

      it did locate it in
      /usr/lib/perl5/site_perl/5.8.0/File/Find/Rule.pm
Re: Can't locate File::Find::Rule in @INC
by borisz (Canon) on Oct 27, 2004 at 12:56 UTC
    Perhaps you have more as one perl installed?
    Boris
      which perl gives /usr/bin/perl only
        try:
        perl -MCPAN -e'install File::Find::Rule' perl -MFile::Find::Rule -e'print $INC{"File/Find/Rule.pm"}' /usr/bin/perl -MFile::Find::Rule -e'print $INC{"File/Find/Rule.pm"}'
        Check your PER5LIB env var.
        Try it as the same user that runs the cpan shell.
        Boris
Re: Can't locate File::Find::Rule in @INC
by castaway (Parson) on Oct 27, 2004 at 19:01 UTC
    You might want to tell us exactly how you are attempting to use this module, since it appears to be installed correctly.

    C.