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

I keep getting this error :
Can't locate warnings.pm in @INC (@INC contains: blib\arch blib\lib C: +\Perl\lib C:\Perl\lib C:/Perl/lib C:/Perl/site/lib lib/Mail/Sender.pm + line 26. BEGIN failed--compilation aborted at blib\lib/Mail/Sender.pm line 26. BEGIN failed--compilation aborted at test.pl line 11. not ok 1 NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code ' +0x2' Stop.
Can someone help me on this

Replies are listed 'Best First'.
Re: Error while installing Mail::Sender
by chromatic (Archbishop) on Jan 08, 2004 at 19:36 UTC

    You're likely either using a really old version of Perl (pre 5.6.0, which is a few years old) or your installation is broken somehow. Perl's trying to load the warnings pragmas, one of the standard library modules and is failing. Type perl -V to check your version and paths.

      yup my perl version is 5.005_03
      Is there another package or another way of doing authentication on a mail server.
      I tried to install Authen::SASL and this one to is giving me an error.

        There are several mail sending modules, though Perl 5.5.3 is five (almost six) major releases out of date. I strongly encourage you to upgrade, though you might try Mail::Mailer.

        (For what it's worth, only one module I maintain explicitly supports anything older than 5.6.0, and that's because it's a Test:: module.)