This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Dirk, > To: address@hidden > From: address@hidden (Dirk Slawinski) > Subject: netCDF-perl > Organization: University of Minnesota/Department of Geology and Geophysics > Keywords: 199705052030.OAA24691 In the above message, you wrote: > I have a question in regards to netCDF-perl. I would like to usr the > libs on a Mac but have had poor success getting the libs to compile so > I thought I'd try the PERL version. Be aware that the netCDF-Perl package *uses* the netCDF library. Therefore, you must have a correct netCDF library installed on the system for which you want netCDF-Perl. > Are there precompiled PERL libs or > plain ASCII PERL libs available? It is my understanding that there is no way to supply a binary Perl extention module library: each must be built by hand on the system for which it's intended. > I even tried compiling the libs on my > SGI 1st so that I could try things out there but they will not compile > there either. I've successfully built the netCDF-Perl package on the following SGI systems: System C compiler ------ ---------- IRIX 5.3 /bin/cc IRIX 6.2 /bin/cc IRIX64 6.2 /bin/cc -32 > The output from make is as follows: > > cd perl && /usr/local/bin/perl Makefile.PL > Checking if your kit is complete... > Looks good > Writing Makefile for NetCDF > > making `dynamic' in directory /usr/people/dirkman/tmp/netcdf-perl-1.1/src/perl > > /usr/local/bin/perl -I/usr/local/lib/perl5/IP22-irix/5.002 > -I/usr/local/lib/perl5 /usr/local/lib/perl5/ExtUtils/xsubpp -typemap > /usr/local/lib/perl5/ExtUtils/typemap NetCDF.xs >NetCDF.tc && mv NetCDF.tc > NetCDF.c > Please specify prototyping behavior for NetCDF.xs (see perlxs manual) > cc -c -I/usr/local/include -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES > -Olimit 3000 -I/usr/local/include -DLANGUAGE_C -O -DVERSION=\"1.1\" > -DXS_VERSION=\"1.1\" -I/usr/local/lib/perl5/IP22-irix/5.002/CORE NetCDF.c > cfe: Warning 581: /usr/include/assert.h:44: Macro assert redefined. > cfe: Error: /usr/local/lib/perl5/IP22-irix/5.002/CORE/perl.h, line 1342: > Syntax Error > extern sigjmp_buf top_env ; > -------------------- ^ > cfe: Error: /usr/local/lib/perl5/IP22-irix/5.002/CORE/perl.h, line 1342: > Empty declaration specifiers (3.5) > extern sigjmp_buf top_env ; > -------------------- ^ > *** Error code 1 (bu21) > *** Error code 1 (bu21) > *** Error code 1 (bu21) > *** Error code 1 (bu21) I appears to me that your perl(1) installation has problems (the C compiler can't handle one of perl(1)'s header files). I do know that it is important to use the same compiler and options to build the netCDF-Perl package that were used to built the perl(1) package. Could you be using a different compiler? > > "uname -a" = IRIX geolab 6.2 03131015 IP22 > "versions" = too long to send, system is an SGI Indy running 6.2 and > PERL 5.002 > > Output from configure is as follows: > > loading cache ./config.cache > checking for catman... no > checking for perl utility... /usr/local/bin/perl > checking for perl manual page directory... /usr/local/man > checking for cc... (cached) cc > checking for neqn... (cached) neqn > checking for tbl... (cached) tbl > checking type of operating system... irix6 > checking for tar flags... -chof > checking for netCDF header-file... -I/usr/local/include > checking for netCDF library... -L/usr/local/lib -lnetcdf > checking for package version... 1.1 > creating ./config.status > creating Makefile > creating perl/Makefile.PL > creating port/master.mk > creating port/Makefile > expanding `include's in file `Makefile' > expanding `include's in file `perl/Makefile.PL' > expanding `include's in file `port/master.mk' > expanding `include's in file `port/Makefile' The above looks OK. Please let me know if this helps. -------- Steve Emmerson <address@hidden>