when i type 'perl perlscript.pl, I get the following error Can't locate version.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at perlscript.pl line 29. What do I need to do to configure my perl environment? I typed in CPAN and "install Bundles::CPAN" and it seemed to install everything, but on line 29 of the perl script, it has a problem with the line use version; our $VERSION = '2.1.0'; -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080227/194010b9/attachment.html>
Rogelio wrote:> when i type 'perl perlscript.pl, I get the following error > > Can't locate version.pm in @INC (@INC contains:[root at shutdown result]# yum provides "version.pm" perl-version.x86_64 0.74-1.el5.rf rpmforge Matched from: /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/version.pm Looks like it is in rpmforge (see <http://wiki.centos.org/Repositories>).> What do I need to do to configure my perl environment? I typed in CPAN and > "install Bundles::CPAN" and it seemed to install everything, but on line 29 > of the perl script, it has a problem with the lineUsing CPAN isn't quite as good of an idea as it seems - it tends to a) install newer versions of perl and b) the packaging system has no idea about files installed via CPAN. The rpmforge repository (see above) has packaged quite a few perl modules, so I'd suggest to use that: [angenenr at shutdown ~]$yum --disablerepo=\* --enablerepo=rpmforge list "perl*"|wc -l 2179 Cheers, Ralph -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20080228/b01e378f/attachment.sig>