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.
David, > I ran into trouble when trying to build the perl netcdf module on our > system. The attached tar file contains the files requested in your > INSTALL instructions. > > shell variables: > export CPP_NETCDF=/usr/include/netcdf-3 > export PERL_MANDIR=/usr/share/man > export LD_NETCDF="-lnetcdf" > > Thanks in advance for your help, > David Brunkow > CSU-CHILL Radar Facility > > > [root@ault src]# ls /usr/lib64/libnetcdf* > /usr/lib64/libnetcdf.a /usr/lib64/libnetcdf_c++.so > /usr/lib64/libnetcdf_c++.so.4.0.0 /usr/lib64/libnetcdff.so > /usr/lib64/libnetcdff.so.4.0.0 /usr/lib64/libnetcdf.so.4 > /usr/lib64/libnetcdf_c++.a /usr/lib64/libnetcdf_c++.so.4 > /usr/lib64/libnetcdff.a /usr/lib64/libnetcdff.so.4 > /usr/lib64/libnetcdf.so /usr/lib64/libnetcdf.so.4.0.0 > > [root@ault src]# ls /usr/lib/libnetcdf* > /usr/lib/libnetcdf.a /usr/lib/libnetcdf_c++.so > /usr/lib/libnetcdf_c++.so.4.0.0 /usr/lib/libnetcdff.so.4 > /usr/lib/libnetcdf.so /usr/lib/libnetcdf.so.4.0.0 > /usr/lib/libnetcdf_c++.a /usr/lib/libnetcdf_c++.so.4 > /usr/lib/libnetcdff.so /usr/lib/libnetcdff.so.4.0.0 > /usr/lib/libnetcdf.so.4 > > [root@ault src]# ls /usr/include/netcdf-3/ > ncvalues.h netcdfcpp.h netcdf.h netcdf.hh netcdf.inc netcdf.mod > typesizes.mod > > [root@ault src]# uname -a > Linux ault 2.6.18-194.8.1.el5 #1 SMP Thu Jul 1 19:04:48 EDT 2010 x86_64 > x86_64 x86_64 GNU/Linux > > [root@ault src]# gcc --version > gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48) > Copyright (C) 2006 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. The output from the configure(1) script had this: Note (probably harmless): No library found for -l I suspect that the environment variable LD_NETCDF was set to "-l netcdf". Please try rebuilding the package from scratch (execute the command "make distclean") with the environment variable LD_NETCDF set to "-L/usr/lib64 -lnetcdf". Mind the spaces! Regards, Steve Emmerson Ticket Details =================== Ticket ID: NXE-375892 Department: Support netCDF Perl Priority: Normal Status: Closed