[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #UGD-926588]: Support for netCDF4 in Perl
- Subject: [netCDF #UGD-926588]: Support for netCDF4 in Perl
- Date: Thu, 06 Jan 2011 15:14:50 -0700
Cathy,
> Here it is:
>
> Here is the output of what was asked for -
>
>
> [root@batchb ~]# cd /usr/local/src/netcdf-perl-1.2.4/
> [root@batchb netcdf-perl-1.2.4]# cd src
> [root@batchb src]# env | grep LD
> OLDPWD=/usr/local/src/netcdf-perl-1.2.4
> [root@batchb src]# make clean
>
> making `clean' in directory /usr/local/src/netcdf-perl-1.2.4/src/perl
>
> make[1]: Entering directory `/usr/local/src/netcdf-perl-1.2.4/src/perl'
> rm -f \
> *.a core \
> core.[0-9] blib/arch/auto/NetCDF/extralibs.all \
> core.[0-9][0-9] NetCDF.bso \
> pm_to_blib.ts core.[0-9][0-9][0-9][0-9] \
> NetCDF.x NetCDF.bs \
> perl tmon.out \
> *.o pm_to_blib \
> blib/arch/auto/NetCDF/extralibs.ld NetCDF.c \
> blibdirs.ts core.[0-9][0-9][0-9][0-9][0-9] \
> *perl.core core.*perl.*.? \
> Makefile.aperl perl \
> NetCDF.def core.[0-9][0-9][0-9] \
> mon.out libNetCDF.def \
> perlmain.c perl.exe \
> so_locations NetCDF.exp
> rm -rf \
> NetCDF.bs *.nc \
> blib
> mv Makefile Makefile.old > /dev/null 2>&1
> make[1]: Leaving directory `/usr/local/src/netcdf-perl-1.2.4/src/perl'
>
> returning to directory /usr/local/src/netcdf-perl-1.2.4/src
>
> rm -f *.nc a.out core *.o *.i *.a *.so.* *.sa.* \
> *.so *.u *.pure *.pure_hardlink *.pure_linkinfo conftest* \
> test.out test.pure.out \
> *.aux *.toc *.dvi \
> config.cache *.Z tags MANIFEST *~
> rm -f perl/perl
> [root@batchb src]# make
> make[1]: Entering directory `/usr/local/src/netcdf-perl-1.2.4/src'
> make[2]: Entering directory `/usr/local/src/netcdf-perl-1.2.4/src'
> cd perl && perl Makefile.PL POLLUTE=0
> Checking if your kit is complete...
> Looks good
> Writing Makefile for NetCDF
>
> making `dynamic' in directory /usr/local/src/netcdf-perl-1.2.4/src/perl
>
> make[3]: Entering directory `/usr/local/src/netcdf-perl-1.2.4/src/perl'
> /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap
> /usr/lib/perl5/5.8.8/ExtUtils/typemap NetCDF.xs > NetCDF.xsc && mv
> NetCDF.xsc NetCDF.c
> Please specify prototyping behavior for NetCDF.xs (see perlxs manual)
> gcc -c -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE
> -fno-strict-aliasing -pipe -Wdeclaration-after-statement
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
> -mtune=generic -DVERSION=\"1.2.4\" -DXS_VERSION=\"1.2.4\" -fPIC
> "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" NetCDF.c
> Running Mkbootstrap for NetCDF ()
> chmod 644 NetCDF.bs
> rm -f blib/arch/auto/NetCDF/NetCDF.so
> LD_RUN_PATH="/usr/local/lib" gcc -shared -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic NetCDF.o -o
> blib/arch/auto/NetCDF/NetCDF.so \
> -L/usr/local/lib -lnetcdf -lhdf5 -lhdf5_hl \
>
> chmod 755 blib/arch/auto/NetCDF/NetCDF.so
> cp NetCDF.bs blib/arch/auto/NetCDF/NetCDF.bs
> chmod 644 blib/arch/auto/NetCDF/NetCDF.bs
> make[3]: Leaving directory `/usr/local/src/netcdf-perl-1.2.4/src/perl'
>
> returning to directory /usr/local/src/netcdf-perl-1.2.4/src
>
> make[2]: Leaving directory `/usr/local/src/netcdf-perl-1.2.4/src'
> make[1]: Leaving directory `/usr/local/src/netcdf-perl-1.2.4/src'
> test ! -f perl/so_locations || chmod a+w perl/so_locations
> [root@batchb src]# make test
> make[1]: Entering directory `/usr/local/src/netcdf-perl-1.2.4/src'
>
> making `test' in directory /usr/local/src/netcdf-perl-1.2.4/src/perl
>
> make[2]: Entering directory `/usr/local/src/netcdf-perl-1.2.4/src/perl'
> cp NetCDF.pm blib/lib/NetCDF.pm
> AutoSplitting blib/lib/NetCDF.pm (blib/lib/auto/NetCDF)
> PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
> Creating netCDF file...........................nccreate: filename
> "foo.nc": NetCDF: Invalid argument
> make[2]: *** [test_dynamic] Error 3
> make[2]: Leaving directory `/usr/local/src/netcdf-perl-1.2.4/src/perl'
> make[1]: *** [perl/test] Error 1
> make[1]: Leaving directory `/usr/local/src/netcdf-perl-1.2.4/src'
> make: *** [test] Error 2
> [root@batchb src]# LD_LIBRARY_PATH=/usr/local/lib make test
> make[1]: Entering directory `/usr/local/src/netcdf-perl-1.2.4/src'
>
> making `test' in directory /usr/local/src/netcdf-perl-1.2.4/src/perl
>
> make[2]: Entering directory `/usr/local/src/netcdf-perl-1.2.4/src/perl'
> PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
> Creating netCDF file...........................nccreate: filename
> "foo.nc": NetCDF: Invalid argument
> make[2]: *** [test_dynamic] Error 3
> make[2]: Leaving directory `/usr/local/src/netcdf-perl-1.2.4/src/perl'
> make[1]: *** [perl/test] Error 1
> make[1]: Leaving directory `/usr/local/src/netcdf-perl-1.2.4/src'
> make: *** [test] Error 2
> [root@batchb src]# pwd
> /usr/local/src/netcdf-perl-1.2.4/src
> [root@batchb src]#
> [root@batchb src]#
Odd. I can see why the first "make test" wouldn't work, but not the second.
Would you please send me the output of the command "uname -a".
> --
> ----------------------------------------------
> NOAA/ESRL PSD and CIRES CDC
> 303-497-6263
> http://www.esrl.noaa.gov/psd/people/cathy.smith/
>
> Emails about data/webpages may get quicker responses from emailing
> address@hidden
Regards,
Steve Emmerson
Ticket Details
===================
Ticket ID: UGD-926588
Department: Support netCDF Perl
Priority: Normal
Status: Closed