Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I have a perl issue and obviously I'm not a perl expert. I can not use CPAN.

I've installed File::Pid using a rpm, or I tried. I downloaded perl-File-Pid-1.01-3.el5.noarch.rpm (and the perl-Class-Accessor dependency) and installed using rpm -r XXX.rpm. I see the rpm installed.

I'm trying perl -MFile::Pid -e 1 and I see not installed the perl module.. Is there any procedure to install a perl module from rpm? I googling and I didn't find it yet.


share|improve this question

migrated from Jan 23 '13 at 9:47

This question came from our site for professional and enthusiast programmers.

Sounds like you're using a different perl than the system perl. What do you get if you type which perl ? – friedo Jan 22 '13 at 22:21
What you did is correct, AFAICS. What does rpm -q perl-File-Pid say? – vonbrand Jan 22 '13 at 22:22
rpm -ql perl-File-Pid will show where the files were installed, showing the perl version it was installed for (as friedo notes above). perl -V will tell you where perl was looking for the modules. – Aaron D. Marasco Jan 23 '13 at 0:22

Your Answer


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