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.
> I would like to build shared NetCDF pkg. to be used with netcdf-perl. > > I was able to build Netcdf shared with pgi compilers but got an error in > running the test in netcdf-perl pkg. > Perl on our system uses gcc. > netcdf-perl support (Steve) told me to compile NetCDF using gcc also. > > Could you please email me the compiler options to build a shared library to > be used with the netcdf-perl pkg.? If you run the netCDF configure script with the "--enable-shared" option and CC=gcc, it should build a shared library. If you are using a later version of gcc than was used to build perl, that might cause a problem, but it should work. You could also try rebuilding perl with the same version of the pgi compiler used for the netCDF library. There are now lots of PGI web pages on building various versions of netCDF with various PGI compiler versions and netCDF versions: http://www.pgroup.com/resources/tips.htm#NETCDF --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: YNQ-200129 Department: Support netCDF Priority: Normal Status: Closed