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

[netCDF #KBH-514997]: Request to help



Sorry, I just noticed the settings in the config.log file indicate the 
problem you are seeing.  From your config.log, you have:

  CPPFLAGS='-I/usr/local/bin/netcdf-c-4.3.3.1/include'
  LDFLAGS='-L/usr/local/lib'

but those are inconsistent.  

If you had installed the netCDF C library under 
"/usr/local/bin/netcdf-c-4.3.3.1", they should be

  CPPFLAGS='-I/usr/local/bin/netcdf-c-4.3.3.1/include'
  LDFLAGS='-L/usr/local/bin/netcdf-c-4.3.3.1/lib'

If you had installed the netCDF C library under 
"/usr/local", they should be

  CPPFLAGS='-I/usr/local/include'
  LDFLAGS='-L/usr/local/lib'

If you used the NCDIR shell variable to specify the location
for the netCDF C library with --prefix=${NCDIR} when you ran
the netCDF-C configure script, make sure NCDIR is still set to
the location you used, and for the netCDF-Fortran configure use:

  CPPFLAGS='-I${NCDIR}/include'
  LDFLAGS='-L${NCDIR}/lib'

If the current installation instructions are confusing, please suggest
how we can improve them.

--Russ

> 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
> > > > address@hidden
> > > :~/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
> 
> 
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


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.