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.
David, >Date: Wed, 31 Jul 96 16:18:54 EDT >From: address@hidden (David L. Dubois) >Organization: Woods Hole Oceanographic Institution >To: address@hidden >Subject: Install on SPARC 4 >Keywords: 199607312031.AA23950 In the above message you wrote: > Steve, > So flush was I with success that I tried the installation on a SPARC 4 > running solaris. I tried to keep the path the same but several variables > in the configure log came up differently (ie. ranlib ... ranlib instead > of ":" and when checking how to run the C preprocessor ... /lib/cpp instead > of "cc -E"). On the SPARC 4 I got a warning that: > warning: C preprocessor, `/lib/cpp', doesn't work > Also, cross-compiling interferes with the running of a test program. > Here follows the output from commands you recommended earlier: > > huck.whoi.edu# uname -a > SunOS huck.whoi.edu 5.5 Generic sun4m sparc SUNW,SPARCstation-4 > # > huck.whoi.edu# env > DISPLAY=:0.0 > HELPPATH=/usr/openwin/lib/locale:/usr/openwin/lib/help > HOME=/ > HZ=100 > LANG=C > LD_LIBRARY_PATH=/usr/openwin/lib > LOGNAME=root > MAIL=/var/mail/root > MANPATH=/usr/openwin/share/man:/usr/man > NOSUNVIEW=0 > OPENWINHOME=/usr/openwin > OS=sunos5 > PATH=/opt/SUNWspro/SC3.0/bin:/usr/openwin/bin:/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/ucb:/etc:/usr/etc:. > PWD=/data/netcdf-2.4.2/src > SHELL=/bin/csh > TERM=sun-cmd > TZ=US/Eastern > USER=root > XFILESEARCHPATH=/usr/openwin/lib/locale/%L/%T/%N%S:/usr/openwin/lib/%T/%N%S > XINITRC=/usr/openwin/lib/Xinitrc > WINDOW_TERMIOS= > TERMCAP=sun-cmd:te=\E[>4h:ti=\E[>4l:tc=sun: > # The above looks OK. > huck.whoi.edu# configure > creating cache ./config.cache > checking for catman... catman > checking for fill-value usage... new usage > checking the installation prefix... /data/netcdf-2.4.2 > checking the installation exec-prefix... /data/netcdf-2.4.2 > checking for cc... cc > checking type of operating system... sunos5 > checking type of machine... sun4 > checking for ranlib... ranlib > checking how to run the C preprocessor... /lib/cpp > checking the C preprocessor... configure: warning: C preprocessor, > `/lib/cpp', doesn't work Very bad. Could you have set the variable CPP in the file CUSTOMIZE? Also, what's in the file `config.log'? I suggest that you override the configure script's determination of the C preprocessor. Try the following: 1. To to the top-level source directory. 2. Execute the command `make clean'. 3. Remove the file `config.cache' if it exists. 4. Set the variable CPP to `cc -E' in the file CUSTOMIZE. 5. Execute the `configure' script. Save the output. 6. If the above fails, then stop and send me all output. 7. Execute the command `make all'. Save the output. 8. If the above fails, then stop and send me all output. 9. Execute the command `make test'. Save the output. 10. If the above fails, then stop and send me all output. 11. Execute the command `make install'. Save the output. 12. If the above fails, then stop and send me all output. 11. Execute the command `make clean'. > checking for f77... f77 > checking for CC... CC > checking for yacc... yacc > checking for neqn... neqn > checking for tbl... tbl > checking for ar... ar > checking for makeinfo... no > checking for tar flags... -chof > checking for dependency generation mechanism... cc -xM > checking whether cross-compiling... yes > checking size of int... configure: error: can not run test program while > cross compiling The above line makes me suspect that the answer lies in the file `config.log'. -------- Steve Emmerson <address@hidden>