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.
>From: address@hidden >Organization: UND >Keywords: 200407131524.i6DFORaW024017 netCDF PGI Fortran Crystal, >Linux boreas 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 unknown > >3.5.0 > >I'm trying to install netcdf using portland group compilers, but there's >problems. Even though you did not send us the full output of your build attempt (evidently you redirected STDOUT to make.log but not STDERR), I am guessing that your problem is related to not setting the CPPFLAGS environment variable correctly for use of PGI Fortran. The netCDF web page that lists example environment variable settings for use with various compilers is: Unidata HomePage http://my.unidata.ucar.edu netCDF http://my.unidata.ucar.edu/content/software/netcdf Installation instructions http://my.unidata.ucar.edu/content/software/netcdf/INSTALL.html Environment variables for Linux http://my.unidata.ucar.edu/content/software/netcdf/INSTALL.html#linux The example settings for using the PGI Fortran compiler are: CC=/usr/bin/gcc CPPFLAGS='-DNDEBUG -DpgiFortran' CFLAGS=-O FC=/opt/pgi/linux86/bin/pgf90 FFLAGS='-O -w' CXX=/usr/bin/g++ The key variable is CPPFLAGS. After setting these environment variables, you will need to start a build from scratch: cd wherever_you_are_tying_to_build_netCDF make distclean ./configure make Please let us know if you problem is not solved by this. Cheers, Tom Yoksas -- NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publically available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.