Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: unable to install warnings.pm under Cygwin

by Mudik (Novice)
on Oct 16, 2015 at 12:34 UTC ( [id://1145107]=note: print w/replies, xml ) Need Help??


in reply to Re: unable to install warnings.pm under Cygwin
in thread unable to install warnings.pm under Cygwin

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 !
  • Comment on Re^2: unable to install warnings.pm under Cygwin

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

    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.

        Most likely, the version of Perl you're running on Solaris does not match the version from which /usr/lib/perl5/vendor_perl/* was taken. Maybe you have multiple versions of Perl installed on that machine or a weird $ENV{PERL5LIB} setup.

        Changing things on Windows will not help with errors happening on Solaris.

      normaly when transforming your pl script with pp package to .exe, they mail let it work on any environnement no ?

        When you create an executable using pp, the executable normally only runs on the same OS it was created under. Since you created it under Cygwin, it likely will only run under another Cygwin installation (may even require the same version of Cygwin)

        If your Perl application is pure Perl, pp can create a PAR file that might run via the parl command on other OSs.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1145107]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-23 20:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found