Hi, (resent since listserv doesn't like you using 'ok' as a starting phrase!)
To build netCDF on 64 bit machines, and hence GDAL with netCDF, and thus have netCDF support in MapServer :-) -------- NetCDF -------- ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf.tar.gz version: netCDF-3.6.0-p1 To install netCDF, uncompress and unpack the tar file, then change to the src directory: gunzip netcdf-3_6_0.tar.gz tar -xf netcdf-3_6_0.tar cd netcdf-3_6_0/src Edit macros.make, add -fPIC to CPPFLAGS, CFLAGS, and CXXFLAGS Now run the usual configure, make test, make install cycle: ./configure --prefix=/usr/local make make install I am not a c/c++ programmer so if I have done something criminal let me know! Norman -----Original Message----- From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On Behalf Of edfialk Sent: 10 January 2007 18:53 To: [email protected] Subject: [UMN_MAPSERVER-USERS] gdal setup with netCDF Hi! I'm trying to get GDAL configured for netCDF output (i.e. convert x file to netCDF). So, I install netcdf-3.6.1 (configure, make, make install). I configure GDAL --with-netcdf=/usr/local/src/netcdf-3.6.1 ... NETCDF support: yes ... then i run make for GDAL, and I get: ... /usr/bin/ld: /usr/local/src/netcdf-3.6.1/lib/libnetcdf.a(attr.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/src/netcdf-3.6.1/lib/libnetcdf.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [libgdal.la] Error 1 make[1]: Leaving directory `/usr/local/src/gdal-1.3.2' make: *** [check-lib] Error 2 Bad value? I got the latest netCDF from http://www.unidata.ucar.edu/software/netcdf/... Anyone have any ideas? Thanks in advance! -Ed -- View this message in context: http://www.nabble.com/gdal-setup-with-netCDF-tf2954438.html#a8263860 Sent from the Mapserver - User mailing list archive at Nabble.com.
