JediWombat has asked for the wisdom of the Perl Monks concerning the following question:
Hi gurus,
I'm afraid I don't know a lot about what I'm doing with Perl/CPAN, but essentially, I've got an old Cent5 box that is running perl5.8.8, and I need to install some modules to it, so I can move an existing program to it.
The module I'm trying to install is File::Basename. When I run cpan File::Basename, I get:
The most recent version "2.85" of the module "File::Basename" is part of the perl-5.28.0 distribution. To install that, you need to +run force install File::Basename --or-- install X/XS/XSAWYERX/perl-5.28.0.tar.gz CPAN: Time::HiRes loaded ok (v1.9717)
Now, if I understand the problem (unlikely), it's that CPAN automatically looks for the newest version of any module, rather than the newest module for my current perl. How can I install a version of this module for my current perl, 5.8.8? Or, am I misunderstanding the issue?
I tried using the suggested `force install` command, which seems to have installed perl5.28.0 alongside my existing stuff.
I've tried searching for solutions to this, but it's hard to know what to search for; I get a lot of results for checking version numbers, etc., but nothing that I can find is about installing old modules into older perl versions.
Can someone straighten me out on this, please, and help me learn how to do this properly?
Thanks, Benjamin.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Installing modules in old version of perl
by dave_the_m (Monsignor) on Jul 11, 2018 at 06:17 UTC | |
by hippo (Archbishop) on Jul 11, 2018 at 08:35 UTC | |
|
Re: Installing modules in old version of perl
by marto (Cardinal) on Jul 11, 2018 at 08:53 UTC | |
|
Re: Installing modules in old version of perl
by haj (Vicar) on Jul 11, 2018 at 06:16 UTC | |
|
Re: Installing modules in old version of perl
by Anonymous Monk on Jul 11, 2018 at 06:05 UTC | |
|
Re: Installing modules in old version of perl
by Anonymous Monk on Jul 11, 2018 at 14:36 UTC |