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.
>To: address@hidden >From: Gavin Esler <address@hidden> >Subject: help with installing NETCDF v2.4.3 >Organization: DAMTP, University of Cambridge, UK >Keywords: 199904191800.MAA06750 Gavin, > Unfortunately the software package I am using requires the use of v2.4.3. > Is there an easy way of telling the configure script to link in -lnsl into > all the Makefiles, or is the easiest way to edit them directly? The output you sent indicated that the configure script had already put -lnsl into all the Makefiles it created, as it should have on a SunOS 4 platform. For example, check the output of make in creating the ncdump and ncgen executables, or any of the test programs. I thought the problem in your case was in attempting to link a different application that used netCDF to the netCDF library. For that, you will have to add -lnsl to the compile/link flags in your own Makefile for Sun platforms. The version 2.4.3 netCDF library still requires the vendor-supplied XDR library, and the -lnsl flag tells the compiler where to find it ... --Russ