Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bash: cpan: command not found

I need to install few perl modules on web hosting server ( OS: Cent OS 6.4, perl v5.10.1) using ssh.

On server :

cpan -i Template::Toolkit

Is giving error:

bash: cpan: command not found

command perl -v is showing that perl is installed, then how is that possible cpan isn't. Or do i need to add some path or change env setting.

env variable PATH value is

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

like image 458
Bharat Pahalwani Avatar asked Nov 20 '13 07:11

Bharat Pahalwani


1 Answers

You have to install it with yum,

yum install perl-CPAN

but you don't need it as Template::Toolkit is already in yum repository,

yum install perl-Template-Toolkit
like image 108
mpapec Avatar answered Sep 28 '22 15:09

mpapec