[root@linux-node2 smokeping-2.6.11]# cpan
Sorry, we have to rerun the configuration dialogfor CPAN.pm due to
some missing parameters. Configuration will bewritten to
<</root/.cpan/CPAN/MyConfig.pm>>
CPAN.pm requires configuration, but most of it canbe done automatically.
If you answer 'no' below, you will enter aninteractive dialog for each
configuration option instead.
Would you like to configure as much as possibleautomatically? [yes] yes
<install_help>
Warning: You do not have write permission for Perllibrary directories.
To install modules, you need to configure a localPerl library directory or
escalate your privileges. CPAN can help you by bootstrapping thelocal::lib
module or by configuring itself to use 'sudo' (ifavailable). You may also
resolve this problem manually if you need tocustomize your setup.
What approach do you want? (Choose 'local::lib', 'sudo' or 'manual')
[local::lib]
Autoconfigured everything but 'urllist'.
Now you need to choose your CPAN mirror sites. You can let me
pick mirrors for you, you can select them from alist or you
can enter them by hand.
Would you like me to automatically choose someCPAN mirror
sites for you? (This means connecting to theInternet) [yes] no
Would you like to pick from the CPAN mirror list?[yes] yes
Found a cached mirror list as of Mon Jun 1307:01:48 2016
If you'd like to just use the cached copy, answer'yes', below.
If you'd like an updated copy of the mirror list,answer 'no' and
I'll get a fresh one from the Internet.
Shall I use the cached mirror list? [yes] yes
First, pick a nearby continent and country bytyping in the number(s)
in front of the item(s) you want to select. Youcan pick several of
each, separated by spaces. Then, you will bepresented with a list of
URLs of CPAN mirrors in the countries youselected, along with
previously selected URLs. Select some of thoseURLs, or just keep the
old list. Finally, you will be prompted for anyextra URLs -- file:,
ftp:, or http: -- that host a CPAN mirror.
You should select more than one (just in case thefirst isn't available).
(1) Africa
(2) Asia
(3) Europe
(4) North America
(5) Oceania
(6) South America
Select your continent (or several nearbycontinents) [] 2
(1) Bangladesh
(2) China
(3) India
(4) Indonesia
(5) Iran
(6) Israel
(7) Japan
(8) Kazakhstan
(9) Philippines
(10) Qatar
(11) Republic of Korea
(12) Singapore
(13) Taiwan
(14) Turkey
(15) Viet Nam
Select your country (or several nearby countries)[] 2
(1) ftp://ftp.cuhk.edu.hk/pub/packages/perl/CPAN/
(2) ftp://mirrors.ustc.edu.cn/CPAN/
(3) ftp://mirrors.xmu.edu.cn/CPAN/
(4) http://cpan.communilink.net/
(5) http://ftp.cuhk.edu.hk/pub/packages/perl/CPAN/
(6) http://mirror.lzu.edu.cn/CPAN/
(7) http://mirrors.163.com/cpan/
(8) http://mirrors.hust.edu.cn/CPAN/
(9) http://mirrors.neusoft.edu.cn/cpan/
(10) http://mirrors.sohu.com/CPAN/
(11) http://mirrors.ustc.edu.cn/CPAN/
(12) http://mirrors.xmu.edu.cn/CPAN/
(13) http://mirrors.zju.edu.cn/CPAN/
Select as many URLs as you like (by number),
put them on one line, separated by blanks,hyphenated ranges allowed
e.g. '1 45' or '7 1-4 8' [] 7
Now you can enter your own CPAN URLs by hand. Alocal CPAN mirror can be
listed using a 'file:' URL like'file:///path/to/cpan/'
Enter another URL or ENTER to quit: []
New urllist
http://mirrors.163.com/cpan/
Autoconfiguration complete.
Attempting to bootstrap local::lib...
Writing /root/.cpan/CPAN/MyConfig.pm forbootstrap...
commit: wrote '/root/.cpan/CPAN/MyConfig.pm'
Fetching with LWP:
http://mirrors.163.com/cpan/authors/01mailrc.txt.gz
Reading'/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://mirrors.163.com/cpan/modules/02packages.details.txt.gz
Reading'/root/.cpan/sources/modules/02packages.details.txt.gz'
Databasewas generated on Thu, 09 Jun 2016 22:53:42 GMT
.............
NewCPAN.pm version (v2.10) available.
[Currentlyrunning version is v1.9800]
You mightwant to try
install CPAN
reloadcpan
to bothupgrade CPAN.pm and run the new version without leaving
thecurrent session.
...............................................................DONE
Fetching with LWP:
http://mirrors.163.com/cpan/modules/03modlist.data.gz
Reading'/root/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /root/.cpan/Metadata
Running make forH/HA/HAARG/local-lib-2.000019.tar.gz
Fetching with LWP:
http://mirrors.163.com/cpan/authors/id/H/HA/HAARG/local-lib-2.000019.tar.gz
Fetching with LWP:
http://mirrors.163.com/cpan/authors/id/H/HA/HAARG/CHECKSUMS
Checksum for/root/.cpan/sources/authors/id/H/HA/HAARG/local-lib-2.000019.tar.gz ok
CPAN.pm:Building H/HA/HAARG/local-lib-2.000019.tar.gz
Checking if your kit is complete...
Looks good
Warning: prerequisite Test::More 0 not found.
Generating a Unix-style Makefile
Writing Makefile for local::lib
Writing MYMETA.yml and MYMETA.json
---- Unsatisfied dependencies detected during ----
---- HAARG/local-lib-2.000019.tar.gz ----
Test::More [build_requires]
Running make test
Delayeduntil after prerequisites
Running make install
Delayeduntil after prerequisites
Tried to deactivate inactive local::lib'/root/perl5'
local::lib is installed. You must now add thefollowing environment variables
to your shell configuration files (or registry, ifyou are on Windows) and
then restart your command line shell and CPANbefore installing modules:
Use of uninitialized value $deactivating innumeric eq (==) at /usr/share/perl5/vendor_perl/local/lib.pm line 381.
Use of uninitialized value $deactivating innumeric eq (==) at /usr/share/perl5/vendor_perl/local/lib.pm line 383.
Use of uninitialized value$options{"interpolate"} in numeric eq (==) at /usr/share/perl5/vendor_perl/local/lib.pmline 424.
Use of uninitialized value$options{"interpolate"} in numeric eq (==) at/usr/share/perl5/vendor_perl/local/lib.pm line 424.
Use of uninitialized value$options{"interpolate"} in numeric eq (==) at /usr/share/perl5/vendor_perl/local/lib.pmline 424.
exportPERL_LOCAL_LIB_ROOT="$PERL_LOCAL_LIB_ROOT:/root/perl5";
export PERL_MB_OPT="--install_base/root/perl5";
exportPERL_MM_OPT="INSTALL_BASE=/root/perl5";
exportPERL5LIB="/root/perl5/lib/perl5:$PERL5LIB";
export PATH="/root/perl5/bin:$PATH";
Would you like me to append that to /root/.bashrcnow? [yes]
commit: wrote '/root/.cpan/CPAN/MyConfig.pm'
You can re-run configuration any time with 'o confinit' in the CPAN shell
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modulesinstallation (v1.9800)
Enter 'h' for help.
cpan[1]> exit
Terminal does not support GetHistory.
Lockfile removed.
*** Remember to restart your shell before runningcpan again ***