[Thread Prev][Thread Next][Index]

Re: addXml.pl problem



Ben,

you must launch addXml.pl exclusively from directory las/server, typing:
    ../xml/perl/addXml.pl [options] file_in file_out

since Perl executable will search for modules in a list of directory, which
begins with  ../xml/perl
as you see:
 (@INC contains: ../xml/perl . ../xml/perl/do
ds ../xml/perl/install/lib/5.6.0 ../xml/perl/install/lib/site_perl/5.6.0 ../
....

Also, I advise you to run it using options --out_inc --in_inc and a blank file
as input and output file.

Beside that, addXml does not work on my system, a PC with RedHat 9, which has
Perl version 5.8
Module Parse-Lex, used by addXml.pl,  is too old and is incompatible with this
version.

Jean-Marie Epitalon
CERFACS
Toulouse, France

benb wrote:

> Hi All,
>
> I'm trying to use the addXml.pl utility for the first time (should be easy e
> nough).  I get the following error:
>
> # /usr/local/las/las/xml/perl/addXml.pl /usr/local/lib/grads/coads_climatolo
> gy.cdf
> Can't locate LASDods.pm in @INC (@INC contains: ../xml/perl . ../xml/perl/do
> ds ../xml/perl/install/lib/5.6.0 ../xml/perl/install/lib/site_perl/5.6.0 ../
> xml/perl/install/lib/perl5/5.6.0 ../xml/perl/install/lib/perl5/site_perl/5.6
> 0 /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_
> perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_per
> l) at /usr/local/las/las/xml/perl/addXml.pl line 15.
> BEGIN failed--compilation aborted at /usr/local/las/las/xml/perl/addXml.pl l
> ine 15.
>
> addXml.pl is in
> /usr/local/las/las/xml/perl
>
> and coads_climatology.cdf is in
> /usr/local/lib/grads
>
> and LASDods.pm is in
> /usr/local/las/las/xml/perl/dods
>
> and I'm executing this in
> /usr/local/las/las/xml/perl
>
> Any help?
>
> Thanks,
>
> Ben


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement