Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to install perl module .I am missing this module .What is the procedure to install a perl module

share|improve this question
Any particular platform? – Ignacio Vazquez-Abrams Nov 23 '10 at 6:40
Linux,Cent Os.... – Rajeev Nov 23 '10 at 6:54
You can usually just do "yum provides */<name of file/module>" to find out what package, if any, provides the module. But in this specific case "" is a very common name and tens of packages provide it. You need to identify which module requires its "" by looking at the source or at the path in the error message. – Bruno9779 Apr 17 '15 at 1:36
up vote 2 down vote accepted

Regardless of which platform you may be on, you may be able to install the module using the CPAN shell. You can drop down to the CPAN shell by running the command:

perl -MCPAN -e shell

and from there use the install command to fetch and install the module you need installed.

The perldoc for CPAN is helpful in understanding how to use CPAN and what it does and how it works.

You may use the i /Util/ command to search modules and packages that match the given pattern. Or, you could go to and look for the module you are looking for.

share|improve this answer
Do u mean to say install – Rajeev Nov 23 '10 at 6:55
And how to list and remove modules.. – Rajeev Nov 23 '10 at 6:56
@Rajeev: I have updated my answer with more information. I am afraid you will have to find the exact name of the module you are looking to install. – ayaz Nov 23 '10 at 7:49

Quite a lot of Perl module are available as rpm packages for CentOS, some in the base repos and quite a few more in rpmforge and epel repos. Easier and faster than using cpan and the module will be updated when you update your CentOS install if an update is available.

See this page for a list of extra CentOS repos.

share|improve this answer
I upvoted this answer, because using precompiled binaries is faster and cleaner than using CPAN. Specially on a production server – Bruno9779 Apr 17 '15 at 1:38

I really like cpanm, it makes it very easy to install perl mods. Have never had a problem with it and saves me a lot of time.

cd /tmp
gunzip App* && tar -xvvf App*
cd App*
perl Makefile.PL
make && make install

( make sure you have gcc installed)

Now all you have to do if you want a mod just cpanm <_MOD_NAME_> ( cpanm POSIX::RT::MQ ) POSIX::RT::MQ is the mod you want / etc

share|improve this answer

You might want to install Utils, not Util. The easiest way is to use CPAN. Just type:

cpan install Utils
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.