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.
>From: Susana Pires Vilanova <address@hidden> >Subject: Re: 960524: NetCDF installation, Linux >Keywords: 199605271000.AA01712 Susana, > Invoking "which make" the version found is usr/bin/make, and the command > "yacc -d ncgen.y" works in the ncgen directory. > So, I've "make clean" and "make -n all" in the ncgen directory as you > told me. The output was: > > ################################################################# > gcc -c -m486 -O2 -fomit-frame-pointer -pipe -I../libsrc main.c > gcc -c -m486 -O2 -fomit-frame-pointer -pipe -I../libsrc load.c > lex ncgen.l > mv lex.yy.c ncgenyy.c > yacc -d ncgen.y > mv y.tab.c ncgentab.c > mv y.tab.h ncgentab.h > gcc -c -m486 -O2 -fomit-frame-pointer -pipe -I../libsrc ncgentab.c > gcc -c -m486 -O2 -fomit-frame-pointer -pipe -I../libsrc escapes.c > gcc -c -m486 -O2 -fomit-frame-pointer -pipe -I../libsrc getfill.c > gcc -c -m486 -O2 -fomit-frame-pointer -pipe -I../libsrc init.c > gcc -c -m486 -O2 -fomit-frame-pointer -pipe -I../libsrc close.c > gcc -c -m486 -O2 -fomit-frame-pointer -pipe -I../libsrc genlib.c > if [ -r ncgen.f -o -r ncgen.F ]; then \ > ld=' -o ncgen '; \ > elif [ -r ncgen.cc -o -r ncgen.C ]; then \ > ld='g++ -o ncgen '; \ > else \ > ld='gcc -o ncgen -m486 -O2 -fomit-frame-pointer -pipe'; \ > fi; \ > cmd="$ld main.o load.o ncgentab.o escapes.o getfill.o init.o close.o > genlib.o . > ./libsrc/libnetcdf.a "; \ > echo $cmd; \ > $cmd \ > || (rm -f ncgen; exit 1) So it appears to now work, getting beyond where it previously failed. I don't know why this worked. I expected to see an error message that would reveal what went wrong right after the "yacc" invocation, where make failed before. To finish the build, it may now be possible to just go back to the top-level netcdf src/ directory and continue with "make all", "make test", and "make install". This should find ncgen already made, so skip the step where it failed. --Russ ______________________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu