Can’tlocate [email protected] [How to Solve]

1. An error

occurs when executing perl -MCPAN -e shell, and the prompt is as follows: [[email protected] ~]# perl -MCPAN -e shell
Can’t locate 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

[[email protected] ~]#wget

3. Unzip, compile, install

[[email protected] ~]# tar -zxvf CPAN-1.9205.tar.gz

[[email protected] ~]# cd CPAN-1.9205

[[email protected] CPAN-1.9205]# perl Makefile.PL

[[email protected] CPAN-1.9205]# make

[[email protected] CPAN- 1.9205]# make install

4. Successfully enter the shell mode of CPAN

[[email protected] CPAN-1.9205]# perl -MCPAN -e shell

Similar Posts: