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.
Tim, >Date: Mon, 29 Jun 98 16:38:05 -0400 >From: address@hidden >Organization: . >To: Steve Emmerson <address@hidden> >Subject: Re: 980629: compilation error; Linux: iostream.h not found >Keywords: 199806291623.KAA19742 In the above message, you wrote: > Here is the ls -li information: > > matins%ls -li /usr/bin/cc /usr/bin/gcc /usr/bin/c89 /usr/bin/c++ /usr/bin/CC > /usr/bin/C++ /usr/bin/g++ /usr > /bin/f77 /usr/bin/g77 > ls: /usr/bin/c89: No such file or directory > ls: /usr/bin/CC: No such file or directory > ls: /usr/bin/C++: No such file or directory > ls: /usr/bin/f77: No such file or directory > ls: /usr/bin/g77: No such file or directory > 14488 -rwxr-xr-x 2 root root 5160 Oct 25 1997 /usr/bin/c++ > 14484 lrwxrwxrwx 1 root root 3 Dec 7 1997 /usr/bin/cc -> > gcc > 14488 -rwxr-xr-x 2 root root 5160 Oct 25 1997 /usr/bin/g++ > 14485 -rwxr-xr-x 2 root root 44748 Oct 25 1997 /usr/bin/gcc > > > matins%ls -li /usr/local/bin/cc /usr/local/bin/gcc /usr/local/bin/c89 > /usr/local/bin/c++ /usr/local/bin/CC > /usr/local/bin/C++ /usr/local/bin/g++ /usr/local/bin/f77 /usr/local/bin/g77 > ls: /usr/local/bin/cc: No such file or directory > ls: /usr/local/bin/c89: No such file or directory > ls: /usr/local/bin/CC: No such file or directory > ls: /usr/local/bin/C++: No such file or directory > ls: /usr/local/bin/f77: No such file or directory > 38917 -rwxr-xr-x 2 local local 95668 Dec 15 1997 > /usr/local/bin/c++ > 38917 -rwxr-xr-x 2 local local 95668 Dec 15 1997 > /usr/local/bin/g++ > 38919 -rwxr-xr-x 1 local local 112892 Dec 15 1997 > /usr/local/bin/g77 > 38922 -rwxr-xr-x 2 local local 148592 Dec 15 1997 > /usr/local/bin/gcc > > > By the way, I just tried "make distclean", FC=fort77, configure, and > got the same error: > > checking for C-equivalent to Fortran routine "SUB"... nm: > conftest.o: No such file or directory configure: error: not found > > I don't have a problem with using whatever combination will work, > since I can make the environment variables special for netcdf. It > would be nice if g77 would work, though. Fortran in Linux is always > causing problems. OK then. Let's try the compilers in "/usr/bin" only. Try the following: 1. Go to the top-level source directory. 2. Execute the command "make distclean". Don't worry if it fails or even fails to execute. 3. Remove the file "config.cache" if it exists. 4. Set the following environment variables to the indicated values: CC=/usr/bin/cc CPPFLAGS="-DNDEBUG -Df2cFortran" CFLAGS=-O FC=/usr/bin/fort77 FFLAGS="-O -Nx400 -w" CXX=/usr/bin/c++ Note that the above syntax is appropriate for sh-derived shells and not for csh-derived ones. Use whatever is appropriate for your shell. 5. Execute the configure script. Redirect standard output and standard error to the file "configure.log". If an error message occurs in the output, then stop and send me the file. 6. Execute the command "make". Redirect standard output and standard error to the file "make.log". If an error occurs, then stop and send me the file. 7. Execute the command "make test". Redirect standard output and standard error to the file "test.log". If an error occurs, then stop and send me the file. 8. Execute the command "make install". Redirect standard output and standard error to the file "install.log". If an error occurs, then stop and send me the file. 9. Execute the command "make clean". -------- Steve Emmerson <http://www.unidata.ucar.edu>