# find / -name Comfig.pm //或者whereis Comfig.pm,注意大小寫 # vi /usr/lib/perl5/5.8.8/CPAN/Config.pm //貼下配置,按照經驗這樣配置是米有問題的(有問題也是RP問題了) # This is CPAN.pm's systemwide configuration file. This file provides # defaults for users, and the values can be changed in a per-user # configuration file. The user-config file is being looked for as # ~/.cpan/CPAN/MyConfig.pm. $CPAN::Config = { 'build_cache' => q[10], 'build_dir' => q[/home/chenbiyan/.cpan/build], 'cache_metadata' => q[1], 'cpan_home' => q[/home/chenbiyan/.cpan], 'dontload_hash' => { }, 'ftp' => q[/usr/kerberos/bin/ftp], 'ftp_proxy' => q[], #有用代理的記得設定下 'getcwd' => q[cwd], 'gpg' => q[/usr/bin/gpg], 'gzip' => q[/bin/gzip], 'histfile' => q[/home/chenbiyan/.cpan/histfile], 'histsize' => q[100], 'http_proxy' => q[], 'inactivity_timeout' => q[0], 'index_expire' => q[1], 'inhibit_startup_message' => q[0], 'keep_source_where' => q[/home/chenbiyan/.cpan/sources], 'links' => q[/usr/bin/links], 'make' => q[/usr/bin/make], 'make_arg' => q[], 'make_install_arg' => q[], 'makepl_arg' => q[], 'ncftp' => q[], 'ncftpget' => q[], 'no_proxy' => q[], 'pager' => q[/usr/bin/less], 'prerequisites_policy' => q[ask], 'scan_cache' => q[atstart], 'shell' => q[/bin/bash], 'tar' => q[/bin/tar], 'term_is_latin' => q[1], 'unzip' => q[/usr/bin/unzip], 'urllist' => [q[ftp://mirrors.ustc.edu.cn/CPAN/]], #這塊是重點,下不下來通常都是urlist沒選好 'wget' => q[/usr/bin/wget], }; 1; __END__ |