Mudik has asked for the wisdom of the Perl Monks concerning the following question:

Hello, i am using Cygwin under Windows. i deleted the module warnings.pm from /usr/lib/perl5/5.22. i am not able to reinstall this module by using the following two methods : 1- download the module from CPAN. Makefile.PL of warning.pm does need warning.pm to be excecuted !! 2 - i tried to reinstall the perl package from Cygwin setup and didn't fix the problem. Any idea please will be appreciated ? Thanks, Mudik
  • Comment on unable to install warnings.pm under Cygwin

Replies are listed 'Best First'.
Re: unable to install warnings.pm under Cygwin
by Corion (Patriarch) on Oct 16, 2015 at 12:01 UTC

    Why did you delete the file?

    I recommend reinstalling Perl through the Cygwin setup.

    If all else fails, maybe you can copy the file from another Cygwin installation, or from warnings.

    I still recommend installing a second Cygwin Perl on a second machine and copying the file from there. Or extracting the file from a Cygwin package. Or restoring from backup.

      Thank you; i copied it from CPAN and now it work ! i was trying to replace it and while doing undo replace it deleted the file. problem solved !

        Why are you trying to replace warnings.pm ? It is tightly tied to the version of Perl it is distributed with and has no life of its own.