Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to install non-most recent versions of the module "warnings"

2 views
Skip to first unread message

Dariusz Dolecki

unread,
May 9, 2013, 3:13:27 PM5/9/13
to begi...@perl.org
I am getting an error while running cpan>install warnings, I have the latest stable release of perl.

cpan[1]> install warnings
Reading '/root/.cpan/Metadata'
  Database was generated on Wed, 08 May 2013 07:17:03 GMT
Running install for module 'warnings'
The most recent version "1.14" of the module "warnings"
is part of the perl-5.17.4 distribution. To install that, you need to run
  force install warnings   --or--
  install F/FL/FLORA/perl-5.17.4.tar.bz2
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 FLORA/perl-5.17.4.tar.bz2                    : make NO isa perl


bash-3.2# perl -v

This is perl 5, version 16, subversion 3 (v5.16.3) built for sun4-solaris

Copyright 1987-2012, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

bash-3.2#


btw- I am encountering the same issues with some other modules.

David Precious

unread,
May 9, 2013, 3:20:07 PM5/9/13
to begi...@perl.org
On Thu, 9 May 2013 14:13:27 -0500
Dariusz Dolecki <dariusz...@gmail.com> wrote:

> I am getting an error while running cpan>install warnings, I have the
> latest stable release of perl.

'warnings' isn't a CPAN module, it's a pragma, part of the core Perl
distribution, you should not need to attempt to install it.

The error the CPAN client was giving you was trying to explain that, to
get a newer version of 'warnings', you'd need to install a newer
version of perl itself - and it won't do that without being asked
specifically, because that's generally not what you'd want (if you'd
wanted to upgrade perl itself, you'd have said so).

What makes you think you needed to upgrade 'warnings' ?



--
David Precious ("bigpresh") <dav...@preshweb.co.uk>
http://www.preshweb.co.uk/ www.preshweb.co.uk/twitter
www.preshweb.co.uk/linkedin www.preshweb.co.uk/facebook
www.preshweb.co.uk/cpan www.preshweb.co.uk/github


timothy adigun

unread,
May 9, 2013, 3:27:13 PM5/9/13
to Dariusz Dolecki, Perl Beginners
Hi Dariusz,

On Thu, May 9, 2013 at 8:13 PM, Dariusz Dolecki <dariusz...@gmail.com> wrote:
I am getting an error while running cpan>install warnings, I have the latest stable release of perl.

 You don't have to install warnings is already installed for you, when perl was installed.
  Check first if you have the module installed before trying to install all over again. If a module is installed, most likely it would have it's documentation so, you could do like so from the CLI `perldoc File::Find`. Checking for the documentation of the module File::Find.



--
Tim
0 new messages