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.
Mark, > To: address@hidden > From: Mark Mitchell <address@hidden> > Subject: PERL NetCDF problem > Organization: NOAA/NWS > Keywords: 200204122131.g3CLVFa26591 netCDF Perl The above message contained the following: > Hello. I am trying to install the PERL NetCDF module on an HP-UX system. > Attached to this message are the files requested in the documentation. > > I can make it to running the Makefile and then the I get errors. I have > sent a couple different versions of the make.log file. The first time I > ran this it gave me an error similar to "-fno-aliasing" option not > found. I removed this option from the make file and re-ran the make > file. The results are in make_fno.log. > > Thanks for any help you can provide. > > Mark Mitchell > National Weather Service - Kansas City/Pleasant Hill, MO ... > loading cache ./config.cache > checking for manual-page index command... > checking for perl... (cached) perl > checking for perl manual page directory... > checking for neqn... (cached) neqn > checking for tbl... (cached) tbl > checking for c89... (cached) cc > checking type of operating system... hpux10 > checking for tar flags... -chof > checking for netCDF header-file... -I > checking for netCDF library... > checking for package version... 1.2 > > ./configure: ERROR: The following variables need values: > > VARIABLE DESCRIPTION EXAMPLE > -------- ------- ------- > PERL_MANDIR perl manual directory /usr/local/man > CPP_NETCDF netCDF header -I/usr/local/unidata/include > LD_NETCDF netCDF library -L/usr/local/unidata/lib -lnetcdf > > For each variable above, this script will now request that you input > a value appropriate for your system (note that this value will not > be interpolated by a shell -- so don't use shell substitutions). > Alternatively, you can interrupt this script, set the above variables > in the environment or in the file CUSTOMIZE, and then re-execute this > script. (Variables referring to executable programs needn't be set if > the relevant directory is added to PATH. See file INSTALL for details.) > > Enter a value for the perl manual directory (e.g. "/usr/local/man"): > /usr/local/perl/man > > Enter a value for the netCDF header (e.g. "-I/usr/local/unidata/include"): > -I/usr/local/netcdf/include > > Enter a value for the netCDF library (e.g. "-L/usr/local/unidata/lib > -lnetcdf"): > -L/usr/local/netcdf/lib -lnetcdf > > creating ./config.status > creating Makefile > creating perl/Makefile.PL > creating port/master.mk > creating port/Makefile > /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (conftest.o) was > detected. The linked output may not run on a PA 1.x system. > 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' ... > filename="make_fno.log" gcc -c -I/usr/local/netcdf/include -D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN -I/usr/local/include -DPERL_POLLUTE -O2 -DVERSION=\"\" -DXS_VERSION=\"\" -fpic -I/usr/local/perl5.6/lib/5.6.0/PA-RISC1.1/CORE NetCDF.c Running Mkbootstrap for NetCDF () chmod 644 NetCDF.bs LD_RUN_PATH="/usr/local/netcdf/lib" ld -o blib/arch/auto/NetCDF/NetCDF.sl -b -L/usr/local/lib NetCDF.o -L/usr/local/netcdf/lib -lnetcdf *** Error exit code 1 The above doesn't seem to contain the standard error output that is needed to diagnose the problem. What is the output from manually executing the following in the top-level source directory: $ cd perl $ gcc -c -I/usr/local/netcdf/include -D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN -I/usr/local/include -DPERL_POLLUTE -O2 -DVERSION=\"^A^B^A\" -DXS_VERSION=\"^A^B^A\" -fpic -I/usr/local/perl5.6/lib/5.6.0/PA-RISC1.1/CORE NetCDF.c Regards, Steve Emmerson <http://www.unidata.ucar.edu>