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

[netCDF #RKI-518277]: NetCDF-Fortran 4.4.2 make check libtool error



Hi Eldon,

> Even after setting the LD_LIBRARY_PATH to the above I get the same error. I 
> tried LD_LIBRARY_PATH=.../lib :{$LD_LIBRARY_PATH} and using 
> LT_SYS_LIBRARY_PATH as well.

I noticed you're on a Mac, and as it says in the netCDF Fortran 
install instructions:

  http://www.unidata.ucar.edu/netcdf/docs/building_netcdf_fortran.html

for OSX you need to use DYLD_LIBRARY_PATH instead of 
LD_LIBRARY_PATH. Here's what works for us:

  NCDIR=~/installs/ncss   # wherever the netCDF C library was installed
  NFDIR=${NCDIR}          # or wherever you want to install netCDF-Fortran
  DYLD_LIBRARY_PATH="${NCDIR}/lib:${DYLD_LIBRARY_PATH}" \
  CPPFLAGS="-I${NCDIR}/include" LDFLAGS="-L${NCDIR}/lib" \
  ./configure --prefix=$NFDIR
  make check
  make install

That's assuming you installed the netCDF-C library as a shared library,
which is the default.

Also, here's a recent step-by-step explanation from a user on OSX:

  
http://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2015/msg00061.html

--Russ
  
> This is the error specifically
> libtool:   error: unrecognised option: '-I../fortran'
> this /fortran folder is not located in installlibs4nc but rather the 
> netcdf-fortran-4.4.2 directory created from untar.

Your config.log file still looks OK, but if you get another
error from "make check" after trying the above, could you
please send the output from "make check" as well?

--Russ

> On Thursday, March 12, 2015 11:33 AM, Unidata netCDF Support <address@hidden> 
> wrote:
> 
> 
> Hi Eldon,
> 
> > Full Name: Eldon Lopes
> > Organization: UMass Lowell
> > Package Version: NetCDF-Fortran 4.4.2
> > Operating System: Mac OS X 10.10 Yosemite
> > Hardware:look carefully enough at
> > Description of problem:
> >
> > Hello again. I decided to upgrade to the newer NetCDF system with the
> > split libraries recently. I have successfully built HDF5, zlib, and the
> > NetCDF-C library into one directory called installlibsnc4. When I try to
> > add the NetCDF-Fortran library to the directory I can configure but I
> > get errors in the make check that I would guess are related to linking
> > errors between libraries. I've tried many things but with no success.
> > I took great care into making sure all the libraries are built with the
> > same C, C++, and Fortran compilers. I (think) I have the environment
> > variables correct although that's where my error was last time.
> 
> Your config.log looks fine.  You installed the netCDF C library in a directory
> the dynamic linker doesn't know to look,
>   /Volumes/Seagate_Bac/Build_WRF/Libraries/installlibsnc4
> so you have to specify that as the value of the LD_L:IBRARY_PATH environmen
> variable before the netCDF-Fortran build, as described in these instructions:
> 
>   
> http://www.unidata.ucar.edu/software/netcdf/docs/building_netcdf_fortran.html
> 
> Try that and let us know if it doesn't fix the problem.
> 
> --Russ
> 
> Russ Rew                                        UCAR Unidata Program
> address@hidden                      http://www.unidata.ucar.edu
> 
> 
> 
> Ticket Details
> ===================
> Ticket ID: RKI-518277
> Department: Support netCDF
> Priority: Normal
> Status: Closed
> 
> 
> 
> 
> 
Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: RKI-518277
Department: Support netCDF
Priority: Normal
Status: Closed