Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

Thanks!!

share|improve this question

migrated from stackoverflow.com Jan 23 '13 at 9:47

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

2  
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
1  
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

 
discard

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