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.
------- Forwarded Message Date: Thu, 03 Apr 2003 16:21:08 -0700 From: Russ Rew <address@hidden> To: Arjan van Dijk <address@hidden> Subject: Re: 20030314: problems installing netcdf >To: address@hidden >From: Arjan van Dijk <address@hidden> >Subject: problems installing netcdf >Organization: Institute for Marine and Atmospheric Research, Utrecht University >Keywords: 200303141229.h2ECTJB2012936 Hi Arjan, I'm very sorry this reply is so late. I went on vacation for two weeks shortly after seeing it, and then I inadvertently lost it. I hope this reply is still of some use to you. > This week I have downloaded the sources of your netcdf library and > tried to install them on our supercomputer. I failed. Below you find > the details. Can you please help me out? > ######################################################################### > # > # uname -a gives: > # > ######################################################################### > > IRIX64 p1 6.5 04101930 IP35 > > ######################################################################### > # > # VERSION: > # > ######################################################################### > > 3.5.0 > > ######################################################################### > # > # Pathnames of compilers: > # > ######################################################################### > > /opt/MIPSpro/MIPSpro/usr/bin/c89 > /opt/MIPSpro/bin/cc > /opt/MIPSpro/bin/f77 > /opt/MIPSpro/bin/f90 > > ######################################################################### > # > # configure.log: > # > ######################################################################### > > creating cache ./config.cache > checking for top-level source-directory > /home/kentar/netcdf-3.5.0/src > checking for m4 preprocessor > checking for m4... m4 > checking m4 flags... -B10000 > checking C compiler "/bin/c89"... failed to compile test program > checking how to make dependencies... cc -M > checking for /bin/cc... /bin/cc > checking C++ compiler "/bin/cc"... configure: warning: /bin/cc failed > on test program The above indicates failure of the configure script to compile a simple C test program. Checking the reason for this later in the config.log output > > ######################################################################### > # > # config.log: > # > ######################################################################### > > This file contains any messages produced by compilers while > running configure, to aid debugging if configure makes a mistake. > > configure:928: checking for top-level source-directory > configure:938: checking for m4 preprocessor > configure:945: checking for m4 > configure:1012: checking m4 flags > configure:1085: checking C compiler "/bin/c89" > configure:1094: /bin/c89 -c -O -DNDEBUG conftest.c 1>&5 > ./configure[1093]: /bin/c89: not found > configure: failed program was: > #line 1087 "configure" > #include "confdefs.h" > > int main() { > > ; return 0; } > configure:1121: checking how to make dependencies > configure:1189: checking for /bin/cc > configure:1225: checking C++ compiler "/bin/cc" > configure:1243: /bin/cc -o conftest -O -DNDEBUG conftest.C 1>&5 > ./configure[1242]: /bin/cc: not found indicates that it couldn't find the compilers /bin/c89 or /bin/cc. If you want to use /opt/MIPSpro/MIPSpro/usr/bin/c8 for your C compiler, you will need to set the necessary environment variable CC before running the configure script, as explained in the installation instructions: http://www.unidata.ucar.edu/packages/netcdf/INSTALL.html#SetEnvVar The settings we have tested for IRIX64 platforms: CC=/bin/c89 FC=/bin/f90 # builds both f77 and f90 interfaces CXX=/bin/CC CXXFLAGS=-LANG:std # only needed for netcdf 3.5.1 and later assumed that the C compiler (or a link to it) was installed in /bin/c89. If this is not the case, you need to explicitly tell the configure script where to find it, as in CC=/opt/MIPSpro/MIPSpro/usr/bin/c89 FC=/opt/MIPSpro/bin/f90 # builds both f77 and f90 interfaces CXX='' # if you don't want the C++ interface Other environment variable settings we have used successfully with IRIX64 are listed here: http://www.unidata.ucar.edu/packages/netcdf/INSTALL.html#irix Before trying these, you will need to "make clean" and "rm config.cache" in the directory where you are building netCDF. Please let us know if there are still problems. If you want to build the C++ interface as well, I recommend that you use the latest beta release of netCDF, available from ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-beta.tar.Z Apologies again for taking so long to reply to your question ... --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://my.unidata.ucar.edu ------- End of Forwarded Message