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: Paul Schopf <address@hidden> >Subject: Install on OSX with IBM XLF8.1 compiler >Organization: UCAR/Unidata >Keywords: 200405130043.i4D0hMtK000209 Hi Paul, > I am having trouble making netcdf on my Mac OSX 10.3.3 with IBM > xlf8.1 compiler. I get a message that my system is not in one of > the select few that are known. > > I run ./configure with no arguments, and get ... > checking for xlf... xlf ... > checking for xlf90... xlf90 > checking Fortran-90 compiler "xlf90"... works ... > When I run make, the c and c++ stuff seems to work, then I have trouble > with cfortran.h: ... > Making `all' in directory /data/Models/Library/netcdf-3.5.1/src/fortran > > cc -c -O -I../libsrc -DNDEBUG fort-attio.c > In file included from ncfortran.h:13, > from fort-attio.c:6: > cfortran.h:134:3: #error "cfortran.h: Can't find your environment > among: - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, > ...) - IBM AIX XL C and FORTRAN Compiler/6000 Version > 01.01.0000.0000 - VAX VMS CC 3.1 and FORTRAN 5.4. ... With xlf and xlf90, you have to set the CPPFLAGS environment variable to -DIBMR2Fortran before running the configure script, as specified in the installation instructions for MacOS X: http://www.unidata.ucar.edu/packages/netcdf/INSTALL.html#macosx So try running "make clean", the remove the config.cache file, set the appropriate environment variables including CPPFLAGS, and run the configure script again, followed by "make all", "make test", and "make install" (if appropriate). Please let us know if you still see problems. --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu/staff/russ