[ncl-install] libpng14.so.14: cannot open shared object file: No such file or directory

Mary Haley haley at ucar.edu
Mon Nov 29 15:29:25 MST 2010


It looks like there is something wrong with your libpng library. The problem is not with the compilation phase, but when you try to execute "./cpex08".

Do you have your LD_LIBRARY_PATH environment variable set to anything? You can check by typing:

   printenv LD_LIBRARY_PATH

If this is set to /usr/local/lib, then that explains why this directory is being searched.

You might try unsetting this environment variable and rerun the program to see if it works.

Or, you can try setting it to /usr/lib64.

However, I have to warn that it looks like you don't have /usr/lib64/libpng.so.  If you don't , this might cause another problem.  In that case, I would check that your PNG library was installed correctly, or else try installing it again.

--Mary

On Nov 29, 2010, at 5:57 AM, ramit at prl.res.in wrote:

> Hi,
> I am trying to install ncarg version 5.1.1 on a 86X64 fedora 12 machine.
> After installation while checking installation I am getting the following
> error message,
> 
> [ambastha at helios bin]$ ncargex cpex08 -clean
> 
> NCAR Graphics Fortran  Example <cpex08>
> 
>  Copying cpex08.f
> 
>  Copying cpexcc.f
> 
> Compiling and linking...
> gfortran -fPIC -fno-second-underscore -fno-range-check -o cpex08 cpexcc.f
> cpex08.f -L/home/ambastha/ncl1/lib -lncarg -lncarg_gks -lncarg_c -lX11
> -lXext -L/usr/local/lib -lpng -lz
> 
> Executing <cpex08>...
> ././cpex08: error while loading shared libraries: libpng14.so.14: cannot
> open shared object file: No such file or directory
> 
> Metafile file is named cpex08.ncgm.
> 
> locate libcrypto gives me the following output
> /usr/lib64/.libcrypto.so.0.9.8n.hmac
> /usr/lib64/.libcrypto.so.8.hmac
> /usr/lib64/libcrypto.so.0.9.8n
> /usr/lib64/libcrypto.so.8
> 
> and locate libpng gives
> /usr/lib64/libpng.so.3
> /usr/lib64/libpng.so.3.43.0
> /usr/lib64/libpng12.so.0
> /usr/lib64/libpng12.so.0.43.0
> /usr/lib64/compiz/libpng.so
> /usr/lib64/gthumb/modules/libpngexporter.so
> /usr/share/doc/libpng-1.2.43
> /usr/share/doc/libpng-1.2.43/CHANGES
> /usr/share/doc/libpng-1.2.43/CMakeLists.txt
> /usr/share/doc/libpng-1.2.43/LICENSE
> /usr/share/doc/libpng-1.2.43/README
> /usr/share/doc/libpng-1.2.43/TODO
> /usr/share/doc/libpng-1.2.43/example.c
> /usr/share/doc/libpng-1.2.43/libpng-1.2.43.txt
> /var/lib/yum/yumdb/l/bf7aad5683037406af9a015112e78be2762ec460-libpng-1.2.43-1.fc11-x86_64
> /var/lib/yum/yumdb/l/bf7aad5683037406af9a015112e78be2762ec460-libpng-1.2.43-1.fc11-x86_64/checksum_data
> /var/lib/yum/yumdb/l/bf7aad5683037406af9a015112e78be2762ec460-libpng-1.2.43-1.fc11-x86_64/checksum_type
> /var/lib/yum/yumdb/l/bf7aad5683037406af9a015112e78be2762ec460-libpng-1.2.43-1.fc11-x86_64/from_repo
> /var/lib/yum/yumdb/l/bf7aad5683037406af9a015112e78be2762ec460-libpng-1.2.43-1.fc11-x86_64/from_repo_revision
> /var/lib/yum/yumdb/l/bf7aad5683037406af9a015112e78be2762ec460-libpng-1.2.43-1.fc11-x86_64/from_repo_timestamp
> /var/lib/yum/yumdb/l/bf7aad5683037406af9a015112e78be2762ec460-libpng-1.2.43-1.fc11-x86_64/reason
> /var/lib/yum/yumdb/l/bf7aad5683037406af9a015112e78be2762ec460-libpng-1.2.43-1.fc11-x86_64/releasever
> 
> whereas libpng14.so.14 is in /usr/local/lib. I tried to change path in
> ncargf7, ncargf90 and ncargcc to include both lib64 and /usr/local/lib but
> the same problem is repeating. Can any one help me out with this?
> 
> thanks
> 
> ramit
> 
> 
> 
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install



More information about the ncl-install mailing list