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

[netCDF #KBH-514997]: Request to help



Thanks for providing the config.log file for building netCDF Fortran
version 4.4.2. It looks like that configure script completed successfully.

> I came across the following make check error when I invoked
> configure for netcdf-fortran-4.4.2 with the command
> printenv LD_LIBRARY_PATH
> export LD_LIBRARY_PATH=${NCDIR}/lib:${LD_LIBRARY_PATH}
> FC=gfortran-4.4 CPPFLAGS=-I/usr/local/bin/netcdf-c-4.3.3.1/include
> LDFLAGS=-L/usr/local/lib ./configure
> --prefix=/usr/local/bin/netcdf-fortran-4.4.2/
> I am using an Ubuntu 14.04 OS and mu netcdf ad netcdf c libraries
> are all installed in usr/local/bin/respective folders.

What was the value of ${NCDIR} for the above?  It's not clear whether
you set NCDIR=/usr/local/bin or NCDIR=/usr/local/bin/netcdf-c-4.3.3.1
or NCDIR=/usr/local.

The values you set for CPPFLAGS and LDFLAGS appear inconsistent.  

If you installed netCDF-C with --prefix=${NCDIR}, then for installing 
netCDF-Fortran you should have CPPFLAGS="-I${NCDIR}/include" and 
LDFLAGS="-L${NCDIR}/lib".

If you installed netCDF-C without specifying a location using --prefix=,
then it would have been installed in the default location, under /usr/local,
as if you had set NCDIR=/usr/local.

Your setting for LD_LIBRARY_PATH looks fine and is consistent with
using CPPFLAGS="-I${NCDIR}/include" and LDFLAGS="-L${NCDIR}/lib".

--Russ

> address@hidden> wrote:
> 
> > Hello,
> >
> > Can you please provide the 'config.log' file generated when you ran
> > configure?  That will give additional information not contained in the
> > makefile you provided.  Thank you,
> >
> > -Ward
> >
> > > Dear Sir,
> > > I came across the following make check error when I invoked
> > > configure for netcdf-fortran-4.4.2 with the command
> > > printenv LD_LIBRARY_PATH
> > > export LD_LIBRARY_PATH=${NCDIR}/lib:${LD_LIBRARY_PATH}
> > > FC=gfortran-4.4 CPPFLAGS=-I/usr/local/bin/netcdf-c-4.3.3.1/include
> > > LDFLAGS=-L/usr/local/lib ./configure
> > > --prefix=/usr/local/bin/netcdf-fortran-4.4.2/
> > > I am using an Ubuntu 14.04 OS and mu netcdf ad netcdf c libraries
> > > are all installed in usr/local/bin/respective folders.
> > >
> > > Error:
> > > collect2: ld returned 1 exit status
> > > make[2]: *** [nf_test] Error 1
> > > make[2]: Leaving directory
> > >
> > `/home/nanditha/Documents/NANDITHA/THESIS/mhm/netcdf-fortran-4.4.2/nf_test'
> > > make[1]: *** [check-am] Error 2
> > > make[1]: Leaving directory
> > >
> > `/home/nanditha/Documents/NANDITHA/THESIS/mhm/netcdf-fortran-4.4.2/nf_test'
> > > make: *** [check-recursive] Error 1
> > > nanditha@nanditha-ThinkCentre-M73
> > :~/Documents/NANDITHA/THESIS/mhm/netcdf-fortran-4.4.2$
> > >
> > >
> > > I had already tried the solution available,but it didn't work for my
> > system.
> > > The obtained make file is attached.
> > >
> > > Thanks & Regards
> > > Nanditha J. S.
> > > 14210029
> > > M. Tech, Civil Engineering
> > > IIT Gandhinagar
> > >
> > >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: KBH-514997
> > Department: Support netCDF
> > Priority: Normal
> > Status: Closed
> >
> >
> 
> 
> --
> Nanditha J. S.
> 14210029
> M. Tech, Civil Engineering
> IIT Gandhinagar
> 
> 
Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: KBH-514997
Department: Support netCDF
Priority: Normal
Status: Closed