in reply to Re^3: cpan: unable to install modules
in thread cpan: unable to install modules

$ sudo find / -name LWP Password: /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/LWP /Library/Perl/5.8.6/LWP /System/Library/Perl/5.8.6/CPAN/LWP /Users/me/.cpan/build/libwww-perl-5.833-594ynR/blib/arch/auto/LWP /Users/me/.cpan/build/libwww-perl-5.833-594ynR/blib/lib/auto/LWP /Users/me/.cpan/build/libwww-perl-5.833-594ynR/blib/lib/LWP /Users/me/.cpan/build/libwww-perl-5.833-594ynR/lib/LWP /Users/me/.cpan/build/libwww-perl-5.833-KTAvI8/blib/arch/auto/LWP /Users/me/.cpan/build/libwww-perl-5.833-KTAvI8/blib/lib/auto/LWP /Users/me/.cpan/build/libwww-perl-5.833-KTAvI8/blib/lib/LWP /Users/me/.cpan/build/libwww-perl-5.833-KTAvI8/lib/LWP /Users/me/my_tar_extractions/libwww-perl-5.833/blib/arch/auto/LWP /Users/me/my_tar_extractions/libwww-perl-5.833/blib/lib/auto/LWP /Users/me/my_tar_extractions/libwww-perl-5.833/blib/lib/LWP /Users/me/my_tar_extractions/libwww-perl-5.833/lib/LWP /Users/me/my_tar_extractions/perl-5.10.1/lib/CPAN/LWP /usr/local/lib/perl5/5.10.1/CPAN/LWP $ sudo find / -name PERL5LIB $

The first module I tried to install with cpan while using my system's 5.8.6 perl was LWP::Simple. However, cpan couldn't get past the "make test" step during installation. So someone told me to download and install libww-perl-5.833 by hand, and just skip the 'make test' step and do "make" followed by "make install". After I did that, I was able to use LWP::Simple in my perl programs.

Then I tried to install my second module, FileUtils::More, using cpan, and once again cpan couldn't install the module. In response, I decided to upgrade to perl 5.10.1. The location of my new perl 5.10.1 install is shown in my initial post. Anyway, that's why some of the results in my find searches are in a Perl/5.8.6/ directory and some are in a perl5/perl5.10.1/ directory

Replies are listed 'Best First'.
Re^5: cpan: unable to install modules
by Bloodnok (Vicar) on Nov 10, 2009 at 17:26 UTC
    PERL5LIB is an environment variable, not a module, and should be set to 'point to' the location of the alternate library location(s) (if any) such that the command perl -V should contain a list of all the standard library locations for your installation together with any alternate locations.

    Since neither /Library/Perl/5.8.6 or /System/Library/Perl/5.8.6 are standard locations, I would infer that PERL5LIB isn't being used, as it ought, to do its job - what you need, I'm guessing, is something like:

    PERL5LIB=$PERL5LIB:/Library/Perl/5.8.6:/System/Library/Perl/5.8.6 export PERL5LIB

    A user level that continues to overstate my experience :-))
Re^5: cpan: unable to install modules
by Khen1950fx (Canon) on Nov 11, 2009 at 19:47 UTC
    Just a thought, but where is FileUtils::More? I checked CPAN but couldn't find it:-)