SOAP::Lite Solaris Perl5.005 "Can"t locate warnings.pm"
SOAP::Lite Solaris Perl5.005 "Can"t locate warnings.pm"
am 15.03.2007 16:59:01 von dubhead
I have installed a shedload of modules to use SOAP::Lite on a Solaris 8
system with Perl 5.00503.
When I start a script using SOAP::Lite I get following error:
Can't locate warnings.pm in @INC (@INC contains:
/home/marcr/perllibs/sun4-solaris /home/marcr/perllibs
/usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503
/usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) at
/home/marcr/perllibs/SOAP/Transport/HTTP.pm line 39.
BEGIN failed--compilation aborted at
/home/marcr/perllibs/SOAP/Transport/HTTP.pm line 39.
...propagated at /home/marcr/perllibs/SOAP/Lite.pm line 527.
That's a reasonable error, because the warnings pragma exists only from
perl 5.6.0.
But the SOAP-Lite-0.69 README says:
"SUPPORTED PLATFORMS
This library has been tested by the author with Perl versions 5.005
and 5.6.0 on different platforms: Windows 98/2K, Solaris 2.6, Linux 2.2.
Should run everywhere where Perl 5.004 or later runs."
So what's going on. I am using perl 5.005 which is later than 5.004 and
I get an error due to a pragma missing from the perl version I am using.
And more importantly, how do I solve this problem without upgrading
perl?
Marc
Re: SOAP::Lite Solaris Perl5.005 "Can"t locate warnings.pm"
am 16.03.2007 00:04:25 von Sisyphus
"dubhead" wrote in message
news:slrnevirdi.vda.dubhead@thirdworld.homenet...
>I have installed a shedload of modules to use SOAP::Lite on a Solaris 8
> system with Perl 5.00503.
>
> When I start a script using SOAP::Lite I get following error:
>
>
> Can't locate warnings.pm in @INC (@INC contains:
> /home/marcr/perllibs/sun4-solaris /home/marcr/perllibs
> /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503
> /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) at
> /home/marcr/perllibs/SOAP/Transport/HTTP.pm line 39.
> BEGIN failed--compilation aborted at
> /home/marcr/perllibs/SOAP/Transport/HTTP.pm line 39.
> ...propagated at /home/marcr/perllibs/SOAP/Lite.pm line 527.
>
>
> That's a reasonable error, because the warnings pragma exists only from
> perl 5.6.0.
> But the SOAP-Lite-0.69 README says:
>
> "SUPPORTED PLATFORMS
>
> This library has been tested by the author with Perl versions 5.005
> and 5.6.0 on different platforms: Windows 98/2K, Solaris 2.6, Linux 2.2.
> Should run everywhere where Perl 5.004 or later runs."
>
> So what's going on. I am using perl 5.005 which is later than 5.004 and
> I get an error due to a pragma missing from the perl version I am using.
> And more importantly, how do I solve this problem without upgrading
> perl?
>
Just find the offending 'use warnings;' and change it to '#use warnings;'
:-)
And complain to the module's author, if you're so disposed. (There's a line
of thought that module authors should not be forcing you to see warnings
generated by their modules.)
If you then run your scripts with global warnings turned on (-w) you'll get
to see any warnings from that module, anyway.
Cheers,
Rob
Re: SOAP::Lite Solaris Perl5.005 "Can"t locate warnings.pm"
am 16.03.2007 19:24:44 von dubhead
Sisyphus wrote:
>
> "dubhead" wrote in message
> news:slrnevirdi.vda.dubhead@thirdworld.homenet...
>
>> I have installed a shedload of modules to use SOAP::Lite on a Solaris 8
>> system with Perl 5.00503.
>>
>> When I start a script using SOAP::Lite I get following error:
>>
>>
>> Can't locate warnings.pm in @INC (@INC contains:
>> /home/marcr/perllibs/sun4-solaris /home/marcr/perllibs
>> /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503
>> /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) at
>> /home/marcr/perllibs/SOAP/Transport/HTTP.pm line 39.
>> BEGIN failed--compilation aborted at
>> /home/marcr/perllibs/SOAP/Transport/HTTP.pm line 39.
>> ...propagated at /home/marcr/perllibs/SOAP/Lite.pm line 527.
>>
>>
>> That's a reasonable error, because the warnings pragma exists only from
>> perl 5.6.0.
>> But the SOAP-Lite-0.69 README says:
>>
>> "SUPPORTED PLATFORMS
>>
>> This library has been tested by the author with Perl versions 5.005
>> and 5.6.0 on different platforms: Windows 98/2K, Solaris 2.6, Linux 2.2.
>> Should run everywhere where Perl 5.004 or later runs."
>>
>> So what's going on. I am using perl 5.005 which is later than 5.004 and
>> I get an error due to a pragma missing from the perl version I am using.
>> And more importantly, how do I solve this problem without upgrading
>> perl?
>>
>
> Just find the offending 'use warnings;' and change it to '#use
> warnings;' :-)
>
> And complain to the module's author, if you're so disposed. (There's a
> line of thought that module authors should not be forcing you to see
> warnings generated by their modules.)
>
> If you then run your scripts with global warnings turned on (-w) you'll
> get to see any warnings from that module, anyway.
>
> Cheers,
> Rob
Actually it is a line saying "no warnings 'redefine'". Switching it of
will probably result in more warnings.
Re: SOAP::Lite Solaris Perl5.005 "Can"t locate warnings.pm"
am 16.03.2007 23:33:29 von Sisyphus
"dubhead" wrote in message
news:45fadf94$0$29540$2e0edba0@news.tweakdsl.nl...
..
..
>> Just find the offending 'use warnings;' and change it to '#use
>> warnings;' :-)
>>
>> And complain to the module's author, if you're so disposed. (There's a
>> line of thought that module authors should not be forcing you to see
>> warnings generated by their modules.)
>>
>> If you then run your scripts with global warnings turned on (-w) you'll
>> get to see any warnings from that module, anyway.
>>
>> Cheers,
>> Rob
> Actually it is a line saying "no warnings 'redefine'". Switching it of
> will probably result in more warnings.
>
I would still remove it - and any 'use warnings;' entries - and any other
'no warnings ....;' entries.
Cheers,
Rob