1. An error
occurs when executing perl -MCPAN -e shell, and the prompt is as follows: [root@fc9 ~]# perl -MCPAN -e shell
Can’t locate CPAN.pm in @INC (@INC contains: /usr/lib/perl5/5.10 .0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.10 .0 /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.8 .8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl .).
BEGIN failed–compilation aborted.
2. Download the CPAN module from the official site of cpan
http://search.cpan.org/~andk/CPAN-1.9205/lib/CPAN.pm
[root@fc9 ~]#wget http://www.cpan.org/authors/id/A/AN/ANDK/CPAN-2.00.tar.gz
3. Unzip, compile, install
[root@fc9 ~]# tar -zxvf CPAN-1.9205.tar.gz
[root@fc9 ~]# cd CPAN-1.9205
[root@fc9 CPAN-1.9205]# perl Makefile.PL
[root@fc9 CPAN-1.9205]# make
[root@fc9 CPAN- 1.9205]# make install
4. Successfully enter the shell mode of CPAN
[root@fc9 CPAN-1.9205]# perl -MCPAN -e shell
Similar Posts:
- CentOS8 Install redis-6.0.6 make test:“ You need tcl 8.5 or newer in order to run the Redis test“
- OS X: equivalent to WGet of Linux
- About configure error APR not found. And exports. C: error_ hack_ apu_ Solution to the problem of redefining version ‘
- [Solved] Ruby cannot load such file — zlib, openssl(LoadError), gem No rule to make target `/include/ruby.h’
- How to install PIP in no module named setuptools
- -Two solutions to bash: WGet: command not found
- Make Command ERROR: “make:*** No targets specified and no makefile found.Stop.” [Three Method to Solve]
- linux Generated when decompressing .tar.gz files gzip: stdin: not in gzip format tar: /Child returned status 1 tar: Error is no…
- linux:/lib/libc.so.6: version `glibc_2.7′ not foun
- ImportError: /lib64/libc.so.6: version `GLIBC_2.17′ problem solved