Configuración de proxy para CPAN (perl) en CentOS
Para instalar el proxy de CPAN:
cpan[3]> o conf http_proxy http://proxy.mydomain.com
Please use ‘o conf commit’ to make the config permanent!
cpan[4]> o conf ftp_proxy http://proxy.mydomain.com
Please use ‘o conf commit’ to make the config permanent!
cpan[5]> o conf commit
commit: wrote ‘/usr/share/perl5/CPAN/Config.pm’
Configuración de proxy para CPAN (perl) en Debian
perl -MCPAN -e shell
cpan[4]> o conf init /proxy/
cpan[5]> o conf commit
commit: wrote '/root/.cpan/CPAN/MyConfig.pm'
YAML Error
Warning (usually harmless): 'YAML' not installed, will not store
>> persistent state
Requiere instalación de perl y de yaml-perl
apt-get install make libconfig-yaml-perl
CentOS Perl INC error
Con las instalaciones nuevas de CentOS, suele haber problemas de Perl al iniciar:
Could not load the Perl module ‘Config::IniFiles’ Can’t locate Config/IniFiles.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 13) line 1.
Para instalar el módulo que falta:
cpan install Config::IniFiles