It's strongly recommended to use Cpanminus, that will make your life easier.
Also, take a look at local::lib and eventually Perlbrew.

https://metacpan.org/pod/local::lib
http://perlbrew.pl/


~$&bast1


On Tue, Jul 8, 2014 at 8:59 PM, Sam <p...@net153.net> wrote:

> On 07/08/2014 05:07 AM, Bob Sauvage wrote:
>
>> Hi there,
>>
>> I'm not able to install any perl modules on one of my RedHat 6.5
>> servers. Hereunder the issue:
>>
>> [root@xxx jmx4perl-1.10]#cpan Config::General
>> CPAN: Storable loaded ok (v2.20)
>> Going to read '/root/.cpan/Metadata'
>> Database was generated on Tue, 08 Jul 2014 07:29:02 GMT
>> Running install for module 'Config::General'
>> CPAN: YAML loaded ok (v0.90)
>> Running make for T/TL/TLINDEN/Config-General-2.56.tar.gz
>> CPAN: Digest::SHA loaded ok (v5.47)
>> CPAN: Compress::Zlib loaded ok (v2.021)
>> Checksum for
>> /root/.cpan/sources/authors/id/T/TL/TLINDEN/Config-General-2.56.tar.gz ok
>> CPAN: Archive::Tar loaded ok (v1.58)
>> Config-General-2.56/
>> [...]
>> CPAN: File::Temp loaded ok (v0.22)
>>
>> CPAN.pm: Going to build T/TL/TLINDEN/Config-General-2.56.tar.gz
>>
>> Checking if your kit is complete...
>> Looks good
>> *CPAN::Meta::YAML 0.011 is not available
>> at /usr/local/share/perl5/CPAN/Meta.pm line 613*
>>
>> Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
>> TLINDEN/Config-General-2.56.tar.gz
>> /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
>> Running make test
>> Make had some problems, won't test
>> Running make install
>> Make had some problems, won't install
>>
>> I encounter this error with all perl modules... Even if I try to build
>> "CPAN::Meta::YAML 0.011" from source:
>> [root@xxx CPAN-Meta-YAML-0.011]# perl Makefile.PL
>> Checking if your kit is complete...
>> Looks good
>> *CPAN::Meta::YAML 0.011 is not available
>>   at /usr/local/share/perl5/CPAN/Meta.pm line 613*
>>
>>
>> Could you help me please ?
>> Thanks,
>> Bob !
>> -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional
>> commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
>>
>
>
> Try cpanminus:
> wget -O cpanm http://cpanmin.us
> chmod +x cpanm
> ./cpanm <big list of your favorite modules here>
>
> Also note on redhat, they did weird stuff with system perl. The "perl"
> package on redhat will give you nothing more than /usr/bin/perl
> For the default modules (perhaps YAML?) that are supposed to be
> distributed with perl, install perl-core
>
>
> --Sam
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>
>

Reply via email to