M
Mark
I wrote a Perl program which works fine on my Linux box, but not another
one. It uses XML::Simple. When run on this other box, I get this error:
XMLin() requires either XML::SAX or XML:arser at /tmp/hg.pl line 342
So this sounds like a simple module-location issue that is easy to
solve, right? Not to me, anyway. The strange part is that when I print
the contents of @INC, it shows me the expected PATH list and I have
verified that XML/Parser.pm does indeed exist in at least one place in
that PATH list. I don't understand why Perl can't find Parser.pm on
this other box when it is clearly in the PATH. Could it be that
XML/Simple.pm modifies @INC? If so, I couldn't find where... I tried
moving XML/Parser.pm to other places in the PATH, including the same
place that XML/Simple.pm exists, but still get the same error.
Here is the contents of @INC that I print out:
/usr/local/perl5.8.5/lib/site_perl/5.8.5/i686-linux
/usr/local/perl5.8.5/lib/site_perl/5.8.5
/usr/lib/perl5/vender_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/local/perl5.8.5/lib/site_perl/5.8.5/ChartDirector
/usr/local/perl/lib/site_perl/5.8.5/i686-linux
/usr/local/perl/lib/site_perl/5.8.5
/usr/local/perl/lib/site_perl
/usr/local/perl/lib/5.8.5/i686-linux
/usr/local/perl/lib/5.8.5
/usr/local/perl/lib
/usr/local/perl5.8.5/lib/5.8.5/i686-linux
/usr/local/perl5.8.5/lib/5.8.5
/usr/local/perl5.8.5/lib/site_perl
Some places were added specifically to try to solve this problem, so
there is more than there really needs to be for now... Parser.pm exists
here:
/usr/lib/perl5/vender_perl/5.8.0/i386-linux-thread-multi/XML/Parser.pm
Any ideas?
Mark
one. It uses XML::Simple. When run on this other box, I get this error:
XMLin() requires either XML::SAX or XML:arser at /tmp/hg.pl line 342
So this sounds like a simple module-location issue that is easy to
solve, right? Not to me, anyway. The strange part is that when I print
the contents of @INC, it shows me the expected PATH list and I have
verified that XML/Parser.pm does indeed exist in at least one place in
that PATH list. I don't understand why Perl can't find Parser.pm on
this other box when it is clearly in the PATH. Could it be that
XML/Simple.pm modifies @INC? If so, I couldn't find where... I tried
moving XML/Parser.pm to other places in the PATH, including the same
place that XML/Simple.pm exists, but still get the same error.
Here is the contents of @INC that I print out:
/usr/local/perl5.8.5/lib/site_perl/5.8.5/i686-linux
/usr/local/perl5.8.5/lib/site_perl/5.8.5
/usr/lib/perl5/vender_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/local/perl5.8.5/lib/site_perl/5.8.5/ChartDirector
/usr/local/perl/lib/site_perl/5.8.5/i686-linux
/usr/local/perl/lib/site_perl/5.8.5
/usr/local/perl/lib/site_perl
/usr/local/perl/lib/5.8.5/i686-linux
/usr/local/perl/lib/5.8.5
/usr/local/perl/lib
/usr/local/perl5.8.5/lib/5.8.5/i686-linux
/usr/local/perl5.8.5/lib/5.8.5
/usr/local/perl5.8.5/lib/site_perl
Some places were added specifically to try to solve this problem, so
there is more than there really needs to be for now... Parser.pm exists
here:
/usr/lib/perl5/vender_perl/5.8.0/i386-linux-thread-multi/XML/Parser.pm
Any ideas?
Mark