[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #QJV-154443]: installation problem fir netcCdf



What value of NCDIR did you use? It looks like it was /opt64/netcdf.

> 
> I encounter problem when I stall the netcdf-fortran.  I have successfully
> installed the netcdf-c-4.2  library.  I dowload the netcdf-fortran-4.2,
> and install it following the instruction as follows,
> 
> 
> Building with shared libraries
> 
> 1. First make sure the netCDF C library has been built, tested, and
> installed. The shell variable NCDIR should be set such that the
> shared library for netCDF C is under|${NCDIR}/lib|and netCDF
> utilities such as ncdump are under|${NCDIR}/bin|. For example:
> 
> NCDIR=/usr/local
> 
> 2. The configure script will try to determine suitable Fortran and C
> compilers for building netCDF Fortran, but you can instead specify
> them with the FC and CC environment variables, if needed. For example:
> 
> CC=/usr/local/cc
> FC=/usr/local/fortran
> 
> 3. If the netCDF C library was installed as a shared library in a
> location that is not searched by default, you will need to set the
> LD_LIBRARY_PATH environment variable (or DYLD_LIBRARY_PATH on OSX)
> to specify that directory before running the configure script. For
> example:
> 
> export LD_LIBRARY_PATH=${NCDIR}/lib:${LD_LIBRARY_PATH}
> 
> 4. If you set the LD_LIBRARY_PATH (or DYLD_LIBRARY_PATH) environment
> variable in the previous step, don't use "sudo" before the following
> "configure" or "make check" commands. Using "sudo" causes the LD_*
> environment variables to be ignored. You can use "sudo make install"
> as the last step if necessary, but don't use "sudo" before that.
> 5.
> 
> Set the shell variable|NFDIR|to where you want to install netCDF
> Fortran, which can be the same location where the netCDF C was
> installed (default /usr/local), but*not*the source directory where
> you are building the software. Then, from the top-level source
> directory, run the configure script, using CPPFLAGS and LDFLAGS to
> specify where the netCDF C library was installed:
> 
> NFDIR=/usr/local
> CPPFLAGS=-I${NCDIR}/include LDFLAGS=-L${NCDIR}/lib \
> ./configure --prefix=${NFDIR}
> 
> If you are cross-compiling, you should also include the configure
> option "--disable-fortran-type-check", as in:
> 
> CPPFLAGS=-I${NCDIR}/include LDFLAGS=-L${NCDIR}/lib \
> ./configure --prefix=${NFDIR} --disable-fortran-type-check
> 
> To see other configure options, run|configure --help|.
> 
> 6. If that succeeds, run
> 
> make check
> 
> 7.
> 
> If that succeeds, run
> 
> make install
> 
> or
> 
> sudo make install
> 
> But, I encounter the problem as the attached "config.log" file generated
> by running configure
> 
> I'd appreciate if you can help me.  Thanks very much in advance.
> 
> best regard
> 
> 
> 

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: QJV-154443
Department: Support netCDF
Priority: Critical
Status: Open
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.