Re: cpan and older perls
by ysth (Canon) on Jun 16, 2005 at 15:32 UTC
|
May I suggest you update CPAN (the module) to a version that doesn't have the bug of trying to upgrade perl itself?
Also, you may get better help if you say what module it is that you are trying to install. | [reply] |
|
| [reply] |
|
| [reply] |
|
| [reply] |
Re: cpan and older perls
by grinder (Bishop) on Jun 16, 2005 at 16:51 UTC
|
It's a tricky situation. Test::Simple and Test::More are very nice to work with, and once you've become familiar with them, and the other test modules that just slot right in, it's hard to go past them.
If I remember correctly (update: no, I remembered incorrectly, as pointed out below), T::S and T::M rely on low-level stuff that was added as of 5.6.0. Backporting them back to even earlier versions would require adding a certain amount of machinery to 5.005, and development efforts on 5.005 are all but dead. Leon Brocard recently released a new patchlevel (5.005_04) in the unique goal of allowing the codebase to continue compile correctly on newer, fussier compilers.
That is, even if you were to endeavour to install T::M on 5.005, I'm not even sure you could succeed.
As long as you create your own tests with the venerable Test module, you'll be fine. That is, test the functionality you want to verify in the module you're upgrading. When you're satisfied with it, send it off to the author as a patch, explaining that it will be useful for other people still running perls from the previous millenium.
- another intruder with the mooring in the heart of the Perl
| [reply] |
|
| [reply] |
|
I have Test::More installed on Perl 5.005_03. I don't recall any spectacular problems with the install.
| [reply] |
Re: cpan and older perls
by gellyfish (Monsignor) on Jun 16, 2005 at 15:34 UTC
|
I'm sure if you were to offer to maintain all the dependencies that have only a life in the core and existed after your version and place them on CPAN and ensure that they were compatible with your chosen version of Perl then everyone would be more than happy. This is after all Open Source, if you want something that nobody else has interest in supporting then it's down to you. Moaning on web forums gets you nowhere, offers of action speak very loud.
/J\
| [reply] |
Re: cpan and older perls
by DrHyde (Prior) on Jun 17, 2005 at 09:03 UTC
|
Did I hear you volunteering to test all of my modules for me on your ancient version of perl and let me know which ones work so that I can update their dependencies?
Thankyou! I look forward to receiving your results shortly. | [reply] |
Re: cpan and older perls
by bageler (Hermit) on Jun 16, 2005 at 17:58 UTC
|
When I build manually, there's no issues with not having those modules installed. However, the build process for certain modules says that they are required. That is the problem I have, is pseudo-dependencies that wind up trying to upgrade my perl. I suggest that people take more care when building their packages and ask if the modules really are required. As I said, `make test` works fine regardless. | [reply] |
|
As is mentioned above, I believe this is an issue with some versions of the CPAN module that shipped with earlier perls. If you upgrade CPAN, I think you'll find that it doesn't try to force you into a full perl upgrade.
When you go to upgrade your CPAN module, you can't do it from the CPAN shell because it will send you down the same rabbit hole--during the CPAN upgrade of itself, it will try to upgrade perl.
If you run the CPAN upgrade the old fashioned way (make, make test, make install), you should then be able to use the shell as before and not have it upgrade perl. The most recent CPAN will look at the newest version of a module and if it requires a newer perl, it will just bark and say it won't install without force. This is much nicer.
| [reply] |
|
thanks, I'll see if a manual CPAN upgrade does the trick.
| [reply] |
Re: cpan and older perls
by ghenry (Vicar) on Jun 16, 2005 at 15:25 UTC
|
What do you suggest be done?
Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a yourname@perl.me.uk? Just ask!!!
| [reply] |
Re: cpan and older perls
by Anonymous Monk on Jun 17, 2005 at 01:04 UTC
|
Does cpan force you to install prereq? | [reply] |