Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How to install perl module Util.pm .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

3 Answers 3

up vote 1 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 search.cpan.org and look for the module you are looking for.

share|improve this answer
    
Do u mean to say install util.pm?? –  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

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
wget http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.4008.tar.gz
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

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

Your Answer

 
discard

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.