[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Unidata Support: 960731: netCDF for Linux? Success!
- Subject: Unidata Support: 960731: netCDF for Linux? Success!
- Date: Wed, 31 Jul 1996 11:08:06 -0600
More details on building netCDF for Linux ...
------- Forwarded Message
>From: Peter S Galbraith <address@hidden>
>Subject: netCDF for Linux? Success!
>Keywords: 199607311622.AA17750
Might as well email this description for the mail archive such that others
may profit!
For Linux 1.2.13 and netcdf-2.4.2:
I added the following lines to CUSTOMIZE (Note, no fortran):
CC=gcc
CFLAGS='-m486 -O2 -fomit-frame-pointer -pipe'
CXX=g++
CXXFLAGS=-O -I/usr/lib/g++-include
FC=""
FFLAGS=-O
prefix=/usr/local
OS=linux
`make all' succeeded except for the ncgen directory. i went into it
and did `make all' in that directory:
/opt/src/netcdf-2.4.2/src/ncgen> make all
yacc -d ncgen.y
make: /usr/bin/make: cannot execute binary file
make: *** [ncgentab.c] Error 126
Same error. However, strangely enough, yacc worked manually:
/opt/src/netcdf-2.4.2/src/ncgen> yacc -d ncgen.y
/opt/src/netcdf-2.4.2/src/ncgen> mv y.tab.c ncgentab.c
/opt/src/netcdf-2.4.2/src/ncgen> mv y.tab.h ncgentab.h
Then, another `make all' and it is done!
Then I went back to the top level, did `make all' again to do stuff
after the initial error and everything was done. `make test' worked also.
Cool!
- - --
Peter Galbraith, research scientist <address@hidden>
Maurice-Lamontagne Institute, Department of Fisheries and Oceans Canada
P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada -- 418-775-0852 - FAX 418-775-0546
------- End of Forwarded Message