[Gstat-info] configuring with netcdf

Peter Morgan petermorgan at grapevine.net.au
Fri Jan 4 05:09:29 CET 2008


Hi
I am new to gstat so if this is out of order apologies.

I run a Fedora 8 system on an AMD 32 bit machine with things like GMT 
and GPS software.
I have just installed gstat  "out of the box" using version 2.4.5

installing with ./configure --with-netcdf fails.

I have the following installed:

SOURCES
+++++++
./media/Fedora 8 i386 DVD/Packages/dap-netcdf_handler-3.7.6-5.fc8.i386.rpm
./media/Fedora 8 i386 DVD/Packages/netcdf-3.6.2-4.fc8.i386.rpm
./media/Fedora 8 i386 DVD/repoview/dap-netcdf_handler.html
./media/Fedora 8 i386 DVD/repoview/netcdf.html

INSTALLATION
+++++++++
./usr/lib/libnetcdf.so.4
./usr/lib/libnetcdff.so.4
./usr/lib/libnetcdff.so.4.0.0
./usr/lib/libnetcdf_c++.so.4
./usr/lib/libnetcdf_c++.so.4.0.0
./usr/lib/libnetcdf.so.4.0.0
./usr/share/mime/application/x-netcdf.xml
./usr/share/doc/netcdf-3.6.2

Here is the output from make showing that it cannot find the netcdf stuff.

[peterm at currawong gstat-2.4.5]# make
cp meschach/meschach.a lib/libmeschach.a
(cd src; make)
make[1]: Entering directory `/usr/local/gstat/source/gstat-2.4.5/src'
gcc -c -g -O2 -I../include -I/usr/include/ncurses -DHAVE_CONFIG_H block.c
gcc -c -g -O2 -I../include -I/usr/include/ncurses -DHAVE_CONFIG_H data.c
gcc -c -g -O2 -I../include -I/usr/include/ncurses -DHAVE_CONFIG_H direct.c
gcc -c -g -O2 -I../include -I/usr/include/ncurses -DHAVE_CONFIG_H fig.c
gcc -c -g -O2 -I../include -I/usr/include/ncurses -DHAVE_CONFIG_H fit.c
gcc -c -g -O2 -I../include -I/usr/include/ncurses -DHAVE_CONFIG_H getest.c
gcc -c -g -O2 -I../include -I/usr/include/ncurses -DHAVE_CONFIG_H gls.c
gcc -c -g -O2 -I../include -I/usr/include/ncurses -DHAVE_CONFIG_H glvars.c
gcc -c -g -O2 -I../include -I/usr/include/ncurses -DHAVE_CONFIG_H gstat.c
gcc -c -g -O2 -I../include -I/usr/include/ncurses -DHAVE_CONFIG_H lex.c
gcc -c -g -O2 -I../include -I/usr/include/ncurses -DHAVE_CONFIG_H lm.c
gcc -c -g -O2 -I../include -I/usr/include/ncurses -DHAVE_CONFIG_H map2fig.c
gcc -c -g -O2 -I../include -I/usr/include/ncurses -DHAVE_CONFIG_H map2gd.c
gcc -c -g -O2 -I../include -I/usr/include/ncurses -DHAVE_CONFIG_H mapio.c
mapio.c:1800:21: error: netcdf.h: No such file or directory
mapio.c: In function 'cdf_read_grd_info':
mapio.c:1945: error: 'ncopts' undeclared (first use in this function)
mapio.c:1945: error: (Each undeclared identifier is reported only once
mapio.c:1945: error: for each function it appears in.)
mapio.c:1948: error: 'NC_NOWRITE' undeclared (first use in this function)
mapio.c:1970: error: 'NC_GLOBAL' undeclared (first use in this function)
mapio.c:2008: error: 'ncerr' undeclared (first use in this function)
mapio.c: In function 'read_gmt':
mapio.c:2025: error: 'nclong' undeclared (first use in this function)
mapio.c:2041: error: 'ncopts' undeclared (first use in this function)
mapio.c:2043: error: 'NC_NOWRITE' undeclared (first use in this function)
mapio.c: In function 'write_gmt':
mapio.c:2112: error: 'ncopts' undeclared (first use in this function)
mapio.c:2114: error: 'NC_CLOBBER' undeclared (first use in this function)
mapio.c:2131: error: 'NC_DOUBLE' undeclared (first use in this function)
mapio.c:2135: error: 'NC_LONG' undeclared (first use in this function)
mapio.c:2138: error: 'NC_FLOAT' undeclared (first use in this function)
mapio.c:2142: error: 'NC_CHAR' undeclared (first use in this function)
mapio.c:2153: error: 'NC_GLOBAL' undeclared (first use in this function)
make[1]: *** [mapio.o] Error 1
make[1]: Leaving directory `/usr/local/gstat/source/gstat-2.4.5/src'
make: *** [src/gstat] Error 2

I will check the netcdf installation.
Feedback would be just great.

ths peter


-- 

***************************************
*                                     *
*  Peter and Carol Morgan             *
*  20 Goodparla St                    *
*  Hawker, ACT, 2614                  *
*  Australia                          *
*                                     *
* Home Phone      +61 (0)2 6254 0137  *
* Peter's Mobile  +61 (0)4 1854 0137  *
*                                     *
***************************************



More information about the Gstat-info mailing list