[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 980626: NetCDF Perl problem



G'day Aidan,

> To: address@hidden
> From: address@hidden (Aidan Heerdegen)
> Subject: NetCDF Perl problem
> Organization: .
> Keywords: 199806260542.XAA26523

In the above message, you wrote:

> I am trying to install netCDF Perl on my sun sparc-5, running SunOS 5.5.1.
> I have no problem installing netcdf v3.4, and the compile of netCDF Perl
> goes ok as well, but when I try 'make test' I get the following error:
> 
> %: make test
>  
> making `test' in directory /home/aidan/src/netcdf-perl-1.2/src/perl
>  
> PERL_DL_NONLAZY=1 /home/aidan/bin/perl -I./blib/arch -I./blib/lib 
> -I/home/aidan/lib/perl5/sun4-solaris/5.004 -I/home/aidan/lib/perl5 test.pl
> Creating netCDF file...........................nccreate: Bad Flag
> *** Error code 3
> make: Fatal error: Command failed for target `test_dynamic'
> Current working directory /home/aidan/src/netcdf-perl-1.2/src/perl
> *** Error code 1
> make: Fatal error: Command failed for target `perl/test'
> Current working directory /home/aidan/src/netcdf-perl-1.2/src
> *** Error code 1
> make: Fatal error: Command failed for target `test'
> 
> I tried running test.pl myself, using the debugger:
> 
> maroondah ~/src/netcdf-perl-1.2/src: perl -d perl/test.pl 
>  
> Loading DB routines from perl5db.pl version 1
> Emacs support available.
>  
> Enter h or `h h' for help.
>  
> main::(perl/test.pl:10):        $pathname = "foo.nc";
>   DB<1> b 28
>   DB<2> c
> Creating netCDF file...........................main::(perl/test.pl:28): $ncid 
> = NetCDF::create($pathname, NetCDF::NOCLOBBER);
>   DB<2> p NetCDF::NOCLOBBER
> 4
>   DB<3> 
> 
> So it seems to be coming up with a sensible value for NOCLOBBER (I assume
> this is sensible, as it is defined to be this in netcdf.h).
> 
> Any ideas where I may have tripped up?

I have a similar setup here and NetCDFPerl builds just fine.  Here are
the details of my system:

    $ uname -a
    SunOS gilda.unidata.ucar.edu 5.6 Generic_105181-05 sun4u sparc SUNW,Ultra-2
    $ type cc
    cc is /opt/SUNWspro/bin/cc
    $ type perl
    perl is /opt/bin/perl
    $ perl -version
    This is perl, version 5.004
    ...
    $ cat /upc/netcdf-perl/src/VERSION
    1.2
    $ cat /upc/netcdf/src/VERSION
    3.4

You have a different version of the operating system, but that shouldn't
matter.  Is there anything else in the above that differs from your
environment?  Could you, perhaps, be obtaining an old version of the
netCDF library?

> 
> I would have looked up the archives of your mailing list for any answers to
> this problem, but they don't seem to be online.

I'll look into why they're not online.  I don't think there's anything
about this problem, however.

> 
> Thanks very much
> 
> Aidan
> 
> --
> Aidan Heerdegen               Department of Geography                       
> address@hidden           Australian National University      
> +61-2-6279 8150                 ACT 0200, AUSTRALIA
> 
> 
> ------- End of Forwarded Message

--------
Steve Emmerson   <http://www.unidata.ucar.edu>