installing perl modules on F10

Dave Cross davorg at gmail.com
Mon Feb 9 14:00:07 UTC 2009


2009/2/6 L <yuanlux at gmail.com>:
> On Sat, Feb 7, 2009 at 4:02 AM, Dave Cross <davorg at gmail.com> wrote:
>> 2009/2/6 Norman Gaywood <ngaywood at une.edu.au>:
>>> Hi list,
>>>
>>> So whats the recommended way of installing perl modules in Fedora 10?
>>
>> rpm and/or yum
>>
>>> What we have been doing in the past is to install a perl-* rpm via yum
>>> if one is available for the module we want.
>>>
>>> If the module is not available via rpm, we use "perl -MCPAN -e shell" to
>>> install modules.
>>
>> I really don't recommend that. Mixing rpm-installed modules and
>> cpan-installed modules is very likely to lead to unhappiness.
>>
>> You may find my "Perl in RPM-Land" presentation interesting.
>>
>>  http://www.slideshare.net/davorg/perl-in-rpmland-presentation
>>
>
> I use cpan2rpm, you install cpan2rpm by
>
> yum install capan2rpm
>
>
> then for example:
>
> cpan2rpm -i Statistics::Distribution
>
> or
>
> cpan2rpm --no-sign  -i Statistics::Regression
>
> I changed "Pod::Text" in  /usr/bin/cpan2rpm to "Pod::Parser"
>
>
> It is very handy

cpanspec is what the Fedora Perl team use to build RPMs from CPAN
modules. you may find it builds nicer RPMs than cpan2rpm.

Dave...




More information about the fedora-list mailing list