[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 

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


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
  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:


> 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?


> 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

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.