[CentOS] perl error on CentOS

Thu Feb 28 10:19:30 UTC 2008
Ralph Angenendt <ra+centos at br-online.de>

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 line

Using 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-0004.sig>