Reputation: 1678
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
Upvotes: 6
Views: 23203
Reputation: 50637
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
Upvotes: 11