[ncl-install] ncl: error while loading shared libraries

Mary Haley haley at ucar.edu
Wed Jan 2 14:50:03 MST 2008


Hi Rodrigo,

I think our OPeNDAP build expert is out for the rest of the week,
so I'll attempt to answer your question.

It looks like your libnc-dap files were installed correctly, so the
only thing I can think of is that LD_LIBRARY_PATH is either set
incorrectly or not at all.

Can you type the following and email me the output:

    echo $LD_LIBRARY_PATH
    ldd $NCARG_ROOT/bin/ncl
    ls -l /usr/loca/lib/libnc-dap*

Thanks,

--Mary


On Wed, 2 Jan 2008, [UTF-8] Rodrigo Fernández wrote:

> Hi, im kind of new in this stuff. Im working in a debian base sistem,
and i have been following the instructions in
http://www.ncl.ucar.edu/Download/install.shtml and have done
everything what they said, but when i run ncl...

ncl: error while loading shared libraries: libnc-dap.so.3: cannot open
shared object file: No such file or directory

I already have installed libnc-dap.so.3.7.0 (the ./configure and make
all stuff ). I have set the LD_LIBRARY_PATH variable using export, but
it seems that wasnt the problem. Well, if anyone know something that
may help please mail me or something =) and have a happy new year.

  PS: this is the make all install output:

make  all-recursive
make[1]: se ingresa al directorio `/home/rfernand/Desktop/libnc-dap-3.7.0'
Making all in .
make[2]: se ingresa al directorio `/home/rfernand/Desktop/libnc-dap-3.7.0'
make[2]: se sale del directorio `/home/rfernand/Desktop/libnc-dap-3.7.0'
Making all in ncdump
make[2]: se ingresa al directorio
`/home/rfernand/Desktop/libnc-dap-3.7.0/ncdump'
make[2]: No se hace nada para `all'.
make[2]: se sale del directorio `/home/rfernand/Desktop/libnc-dap-3.7.0/ncdump'
make[1]: se sale del directorio `/home/rfernand/Desktop/libnc-dap-3.7.0'
Making install in .
make[1]: se ingresa al directorio `/home/rfernand/Desktop/libnc-dap-3.7.0'
make[2]: se ingresa al directorio `/home/rfernand/Desktop/libnc-dap-3.7.0'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
  /usr/bin/install -c 'ncdap-config' '/usr/local/bin/ncdap-config'
test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"
  /bin/sh ./libtool --mode=install /usr/bin/install -c  'libnc-dap.la'
'/usr/local/lib/libnc-dap.la'
/usr/bin/install -c .libs/libnc-dap.so.3.0.3 /usr/local/lib/libnc-dap.so.3.0.3
(cd /usr/local/lib && rm -f libnc-dap.so.3 && ln -s libnc-dap.so.3.0.3
libnc-dap.so.3)
(cd /usr/local/lib && rm -f libnc-dap.so && ln -s libnc-dap.so.3.0.3
libnc-dap.so)
/usr/bin/install -c .libs/libnc-dap.lai /usr/local/lib/libnc-dap.la
/usr/bin/install -c .libs/libnc-dap.a /usr/local/lib/libnc-dap.a
ranlib /usr/local/lib/libnc-dap.a
chmod 644 /usr/local/lib/libnc-dap.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
    /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
      during execution
    - add LIBDIR to the `LD_RUN_PATH' environment variable
      during linking
    - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
    - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/share/aclocal" || mkdir -p -- "/usr/local/share/aclocal"
  /usr/bin/install -c -m 644 'm4/libnc-dap.m4'
'/usr/local/share/aclocal/libnc-dap.m4'
  /usr/bin/install -c -m 644 'm4/libnc-dap_header.m4'
'/usr/local/share/aclocal/libnc-dap_header.m4'
test -z "/usr/local/include/libnc-dap" || mkdir -p --
"/usr/local/include/libnc-dap"
  /usr/bin/install -c -m 644 'lnetcdf/netcdf.h'
'/usr/local/include/libnc-dap/netcdf.h'
  /usr/bin/install -c -m 644 'fortran/netcdf.inc'
'/usr/local/include/libnc-dap/netcdf.inc'
make[2]: se sale del directorio `/home/rfernand/Desktop/libnc-dap-3.7.0'
make[1]: se sale del directorio `/home/rfernand/Desktop/libnc-dap-3.7.0'
Making install in ncdump
make[1]: se ingresa al directorio
`/home/rfernand/Desktop/libnc-dap-3.7.0/ncdump'
make[2]: se ingresa al directorio
`/home/rfernand/Desktop/libnc-dap-3.7.0/ncdump'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
   /bin/sh ../libtool --mode=install /usr/bin/install -c 'ncdump'
'/usr/local/bin/ncdump'
/usr/bin/install -c .libs/ncdump /usr/local/bin/ncdump
make[2]: No se hace nada para `install-data-am'.
make[2]: se sale del directorio `/home/rfernand/Desktop/libnc-dap-3.7.0/ncdump'
make[1]: se sale del directorio `/home/rfernand/Desktop/libnc-dap-3.7.0/ncdump'


-- 
Rodrigo G. Fernández Gaete   < Linux User #444521>
Ingenieria Civil Informática
Universidad Técnica Federico Santa Maria


More information about the ncl-install mailing list