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.
Dear Celeste Saulo, > From: address@hidden (A. Celeste Saulo) > Subject: some problems with Netcdf > Organization: ? > Keywords: 199611181647.AA18739 netCDF In the above message you wrote: > Hello! My name is Celeste Saulo and I'm interested in installing NETCDF on > attempts. That's why I'm asking you for some help!. > On this file, I enclose the following information: > i) output from 'uname -a' = SunOS felipe 5.3 Generic sun4m sparc > ii) output form 'env' is as follows: > > _=/usr/bin/env > MANPATH=/opt/SUNWspro/man:/usr/share/man:/n/man: > HZ=100 > nom=fo > PATH=/opt/SUNWspro/bin:/usr/ccs/bin:.:/usr/openwin/bin:/usr/bin::/n/bin:/usr/openwin/bin::/etc:/home/fortran/bin:/n/bin:/usr/ucb:/etc:. > CDPATH=.:~ > LM_LICENSE_FILE=/opt/SUNWspro/SunTech_License/license.dat > LOGNAME=fortran > MAIL=/usr/spool/mail/fortran > TERMCAP=vt102|vt-102:do=^J:co#80:li#24:cl=50\E[;H\E[2J:le=^H:bs:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:is=\E[1;24r\E[24;1H:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=5\EM:vt#3:sc=\E7:rc=\E8:cs=\E[%i%d;%dr:vs=\E[?7l:ve=\E[?7h: > SHELL=/bin/ksh > HOME=/home/fortran > LD_LIBRARY_PATH=/opt/SUNWspro/lib: > TERM=vt-102 > PWD=/nuevo/netcdf/netcdf-2.4.3/src > TZ=Argentina > ENV=/home/fortran/.kshrc > sid=FE > > iii) I haven't modified the file CUSTOMIZE, though I need the following > FFLAGS: > -Bstatic > Instead, I've preferred to write the command: > FFLAGS=-Bstatic > before runing the configure (under ksh) > However, I've also tried the other shell (csh), so I wrote > setenv FFLAGS -Bstatic > I've also used the configure with --prefix=/nuevo/netcdf > and previously enabled read,write and execute permissions in this directory. > > iv) the output from the configure script is as follows: > > creating cache ./config.cache > checking for catman... catman > checking for fill-value usage... new usage > checking the installation prefix... /nuevo/netcdf > checking the installation exec-prefix... /nuevo/netcdf > checking for cc... cc > checking type of operating system... sunos5 > checking for ranlib... : > checking how to run the C preprocessor... cc -E > checking the C preprocessor... works > checking for f77... f77 > checking for CC... no > checking for CC... no > checking for cxx... no > checking for c++... no > checking for g++... no > checking for gcc... no > 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 for C position-independent-code compile-option... > checking whether cross-compiling... yes > checking size of int... > > and it finishes with the following message: > configure: error: can not run test program while cross compiling > > the config.log file is the following: > > This file contains any messages produced by compilers while > running configure, to aid debugging if configure makes a mistake. > > configure:1156: cc -E conftest.c >/dev/null 2>conftest.out > configure:1197: cc -E conftest.c >/dev/null 2>conftest.out > configure:1684: cc -c -O -Kpic conftest.c 1>&5 > /usr/ucb/cc: language optional software package not installed > configure:1712: cc -o conftest -O conftest.c 1>&5 > /usr/ucb/cc: language optional software package not installed > > v) after all this, of course I couldn't 'make all', because it says that > all is an impossible target. > > > Thank you very much for your attention. > Sincerelly yours, > Celeste Saulo It appears that you don't have a C compiler (or at least one that works)! I conclude this from the following lines in the file `config.log': configure:1684: cc -c -O -Kpic conftest.c 1>&5 /usr/ucb/cc: language optional software package not installed Given your PATH above, I'm puzzled as to why the /usr/ucb/cc compiler was chosen. Our SunOS 5.3 system has a C compiler in /opt/SUNWspro/bin. Does yours? Can you invoke it? Does it successfully compile a test file? -------- Steve Emmerson <address@hidden>