SOAP::Lite Solaris Perl5.005 'Can't locate'

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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 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/ line 39.
BEGIN failed--compilation aborted at
/home/marcr/perllibs/SOAP/Transport/ line 39.
        ...propagated at /home/marcr/perllibs/SOAP/ 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:


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


Re: SOAP::Lite Solaris Perl5.005 'Can't locate'

Quoted text here. Click to load it

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.


Re: SOAP::Lite Solaris Perl5.005 'Can't locate'

Sisyphus wrote:
Quoted text here. Click to load it
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'

Quoted text here. Click to load it

I would still remove it - and any 'use warnings;' entries - and any other
'no warnings ....;' entries.


Site Timeline