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

[netCDF #QCT-533073]: libnetcdff.so.6 => not found

Hi Beata,

Before linking your application, you need to tell your dynamic linker, ld.so,
where to look for the shared libraries to use.  One way to do this is by
setting the LD_LIBRARY_PATH environment variable, as in:


See the man page for ld.so for other ways to do the same thing, including
use of LD_RUN_PATH during linking, or use of the `-Wl,-rpath -Wl,LIBDIR' 
linker flags.


> I would like to run a model is written Fortran90 under Ubuntu 14.04. I use
> gfortran 95 compiler (gfortran 4:4.8.2-1ubuntu6). The required netCDF
> libraries (netCDF-4.3.2 and NetCDF-Fortran 4.4.1) are installed as
> suggested in: http://www.unidata.ucar.edu/software/netcdf/docs/. The
> netcdf is built as shared library so libnetcdf.so and libnetcff.so files
> there are in the library directory.  The libgfortran3 4.8.2-19ubuntu1 is
> installed for GNU fortran application linked against the shared library.
> The LDFLAGS is set in the compiler_options.inc file by the following way:
> INCDF=-I$(NCPATH)/include
> LNCDF=-L$(NCPATH)/lib -lnetcdff
> When I run the model I get the following error message:
> error while loading shared libraries: libnetcdff.so.6: cannot open shared
> object fÃjl: Not such fÃjl or directory.
> I launched the ldd command on my executable and the file command on my
> shared libraries. I found the following results:
> address@hidden:~/Downloads/kid_a_setup/bin$ ldd
> ./KiD_SC_2D.exe
> linux-vdso.so.1 =>  (0x00007fff44ffe000)
> libnetcdff.so.6 => not found
> libgfortran.so.3 => /usr/lib/x86_64-linux-gnu/libgfortran.so.3
> (0x00007f4bfcda7000)
> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4bfcaa0000)
> libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f4bfc88a000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4bfc4c4000)
> libquadmath.so.0 => /usr/lib/x86_64-linux-gnu/libquadmath.so.0
> (0x00007f4bfc287000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f4bfd0d8000)
> address@hidden:~/netcdf/lib$ file libnetcdff.so.6
> libnetcdff.so.6: symbolic link to `libnetcdff.so.6.0.1'
> address@hidden:~/netcdf/lib$ file libnetcdff.so.6.0.1
> libnetcdff.so.6.0.1: ELF 64-bit LSB  shared object, x86-64, version 1
> (SYSV), dynamically linked,
> BuildID[sha1]=a44c6985c1c90ef8b2c89631ad029d155ec441fb, not stripped
> The version of libnetcdff and system are both 64-bit.
> I do not know how I can solve this matter?
> I wondered if you could give me a suggestion.
> Thank you for your help in advance!
> Kind regards,
> Beata
> Dr. Beata Szabo-Takacs
> Global Change Research Centre AS CR, v.v.i.
> B?lidla 986/4a
> 60300 Brno
> Czech Republic
Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu

Ticket Details
Ticket ID: QCT-533073
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.