Domanda

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

È stato utile?

Soluzione

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
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top