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.
Hi Dessy, > I am writing concerning my problems on netcdf after updating to OSX > Yosemite 10.10.1.Then I restart from the very start: > > - reinstall Xcode with the newer version: Version 6.2 (6C131e) instead of > Version 6.3 > - reinstall command line tools Version 6.2 (6C131e) > - reinstall gcc from gcc-5.0-bin.tar.gz > - reconfigure zlib-1.2.8; hereafter I get the followings warning: Could you tell us what version of netCDF you are trying to install? The latest released and supported version of the netCDF C library is 4.3.3.1. You shouldn't need to install gcc. OSX has free XCode developer tools, available for download from the "App Store", that include /usr/bin/gcc (which is the same as /usr/bin/cc or /usr/bin/clang). That's the compiler we test with. > Checking for gcc... > Checking for shared library support... > No shared library support. > Building static library libz.a version 1.2.8 with gcc. The gcc/cc/clang compiler you get with OSX Xcode tools does support shared libraries, which is a feature that makes it easier to link applications with the netCDF software. > Checking for off64_t... No. > Checking for fseeko... No. > Checking for strerror... No. > Checking for unistd.h... Yes. > Checking for stdarg.h... Yes. > Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf(). > Checking for vsnprintf() in stdio.h... No. > WARNING: vsnprintf() not found, falling back to vsprintf(). zlib > can build but will be open to possible buffer-overflow security > vulnerabilities. It looks like there is something wrong with your gcc installation. > Checking for return value of vsprintf()... Yes. > Checking for attribute(visibility) support... Yes. If you continue to have problems building and installing after downloading the OSX Xcode tools and associated command-line tools, please send us a copy of the config.log file created when you run the netCDF configure script. Another easy way you can get a recent version of the netCDF libraries and utilities installed is by using a package management system, such as homebrew: http://brew.sh/ . This automatically detects other software you need, such as zlib, and installs it first. --Russ --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: FFP-769165 Department: Support netCDF Priority: Normal Status: Closed