in reply to unable to install warnings.pm under Cygwin

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.

  • Comment on Re: unable to install warnings.pm under Cygwin

Replies are listed 'Best First'.
Re^2: unable to install warnings.pm under Cygwin
by Mudik (Novice) on Oct 16, 2015 at 12:34 UTC
    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.

        i know it seems weird. i developped a script using LibXML Library. the script is working very well on Cygwin. i used pp to transform the script to .exe and run it on Sun Solaris. where many colleagues have there scripts working using same libraries. under Sun, i have a problem related to the warnings.pm (that i don't use directly but one of my module may use it) here is the error am having under Sun Solaris :
        Search pattern not terminated at /usr/lib/perl5/5.22/warnings.pm line +1099. Compilation failed in require at /usr/lib/perl5/vendor_perl/5.22/Carp. +pm line 5. BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.22/C +arp.pm line 5. Compilation failed in require at /usr/lib/perl5/vendor_perl/5.22/Carp/ +Heavy.pm line 3. BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.22/C +arp/Heavy.pm line 3. Compilation failed in require at /usr/local/bin/par.pl line 361.
        any help is appreciated.
        normaly when transforming your pl script with pp package to .exe, they mail let it work on any environnement no ?