6

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

2
  • Where is perl running from? Try type perl or which perl. Commented Nov 20, 2013 at 7:28
  • @choroba perl is running from /usr/bin/perl Commented Nov 20, 2013 at 7:31

1 Answer 1

11

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
Sign up to request clarification or add additional context in comments.

1 Comment

@Bharat, try to edit /etc/yum/pluginconf.d/priorities.conf and set enabled = 0 then try yum update again

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.