[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #FRO-492157]: 'make check install' errors (doesn't even get to install)
- Subject: [netCDF #FRO-492157]: 'make check install' errors (doesn't even get to install)
- Date: Thu, 11 Sep 2014 21:28:18 -0600
> We have netcdf-c-4.3.2 installed on the system. This is a 64-bit system
> if that matters. I successfully installed on a 32-bit, but no success on
> this one.
>
> Environment variable is set:
>
> printenv LD_LIBRARY_PATH
> /usr/local/lib
>
> (netcdf C libraries are in /usr/local/lib)
>
> then:
>
> export LD_LIBRARY_PATH=${DIR1}/lib:${LD_LIBRARY_PATH}
>
> ran ./configure (as unpriv user, not root)
>
> CPPFLAGS=-I${DIR1}/include LDFLAGS=-L${DIR1}/lib ./configure
> --prefix=${DIR1}
Are you literally using "${DIR1}" without first defining the DIR1 environment
variable to be the path name of where the netCDF C library is installed? That
won't work, because an empty string will be substituted for ${DIR1},
and similarly for the subsequent assignments to CPPFLAGS and LDFLAGS.
Try setting DIR1=/usr/local before defining LD_LIBRARY_PATH, CPPFLAGS,
and LDFLAGS.
The reason ${DIR1} is in italics in the instructions for building netCDF-Fortran
is to indicate that it's not something you should use literally, but instead
substitute the directory that was the prefix for your netCDF C library
installation.
(The later notation *{DIR1}* in the instructions is actually a mistake in the
documentation that should instead be an italicized "${DIR1}", so that's
probably also confusing.)
--Russ
>
> then:
>
> make check
>
> This also did not work and resulted in the same error:
>
> libtool: link: gfortran -I../fortran -I../fortran -g -O2 -o
> .libs/nf_test f03lib_f_interfaces.o test_get.o test_put.o nf_error.o
> nf_test.o test_read.o test_write.o util.o f03lib.o -L/lib
> ../fortran/.libs/libnetcdff.so -lnetcdf
> ../fortran/.libs/libnetcdff.so: undefined reference to `nc_inq_path'
> ../fortran/.libs/libnetcdff.so: undefined reference to `nc_rename_grp'
> collect2: ld returned 1 exit status
> make[2]: *** [nf_test] Error 1
> make[2]: Leaving directory `/sda5/netcdf-fortran-4.4.1/nf_test'
> make[1]: *** [check-am] Error 2
> make[1]: Leaving directory `/sda5/netcdf-fortran-4.4.1/nf_test'
> make: *** [check-recursive] Error 1
>
>
>
>
> On 9/11/14, 4:55 PM, Unidata netCDF Support wrote:
> > Hi D.
> >
> >> Organization: Duke University Nicholas School
> >> Package Version: NetCDF-Fortran-4.4.1
> >> Operating System: SL6 2.6.32-431.el6.x86_64
> >> Hardware: Dell R720
> >> Description of problem: make check install ends with (document containing
> >> ./configure output and complete result of make check install attached):
> >>
> >> /bin/sh ../libtool --tag=F77 --mode=link gfortran -I../fortran
> >> -I../fortran -g -O2 -o nf_test f03lib_f_interfaces.o test_get.o
> >> test_put.o nf_error.o nf_test.o test_read.o test_write.o util.o f03lib.o
> >> ../fortran/libnetcdff.la -lnetcdf
> >> libtool: link: gfortran -I../fortran -I../fortran -g -O2 -o .libs/nf_test
> >> f03lib_f_interfaces.o test_get.o test_put.o nf_error.o nf_test.o
> >> test_read.o test_write.o util.o f03lib.o ../fortran/.libs/libnetcdff.so
> >> -lnetcdf -Wl,-rpath -Wl,/usr/local/netcdf-fortran/lib
> >> ../fortran/.libs/libnetcdff.so: undefined reference to `nc_inq_path'
> >> ../fortran/.libs/libnetcdff.so: undefined reference to `nc_rename_grp'
> >> collect2: ld returned 1 exit status
> >> make[2]: *** [nf_test] Error 1
> >> make[2]: Leaving directory `/root/netcdf-fortran-4.4.1/nf_test'
> >> make[1]: *** [check-am] Error 2
> >> make[1]: Leaving directory `/root/netcdf-fortran-4.4.1/nf_test'
> >> make: *** [check-recursive] Error 1
> > The netCDF-Fortran library depends on the netCDF C library, so you
> > have to install a netCDF C library first, and tell configure where
> > it's installed. Here's the instructions:
> >
> > http://www.unidata.ucar.edu/netcdf/docs/building_netcdf_fortran.html
> >
> > --Russ
> >
> > Russ Rew UCAR Unidata Program
> > address@hidden http://www.unidata.ucar.edu
> >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: FRO-492157
> > Department: Support netCDF
> > Priority: Normal
> > Status: Closed
> >
>
> --
>
>
>
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: FRO-492157
Department: Support netCDF
Priority: Normal
Status: Closed