PDA

View Full Version : 32 bit package missing shared library



jonnier
18th November 2015, 03:49 PM
Hello,

I've got a 32 bit package for a RS485 analyzer but it won't start due to a failed shared library. I checked with ldd to see what was missing and it appears to be missing libpng12.so.0(see output of ldd below:

librt.so.1 => /lib/librt.so.1 (0xf710d000)
libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0xf6fca000)
libXinerama.so.1 => /lib/libXinerama.so.1 (0xf6fc6000)
libSM.so.6 => /lib/libSM.so.6 (0xf6fbc000)
libpng12.so.0 => not found
libz.so.1 => /lib/libz.so.1 (0xf6fa3000)
libdl.so.2 => /lib/libdl.so.2 (0xf6f9d000)
libstdc++.so.6 => /lib/libstdc++.so.6 (0xf6e23000)
libm.so.6 => /lib/libm.so.6 (0xf6dd5000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf6db7000)
libpthread.so.0 => /lib/libpthread.so.0 (0xf6d9a000)

I checked that the i686 version of the library was installed and it is.

Not sure were else to look, any ideas?

Thanks

kldixon
18th November 2015, 08:48 PM
On my F22 x86_64 install that file is a symbolic link so the i686 version probably is too and could be missing. Do something like the following commands. The whereis probably will find nothing. You could just try re-installing the package.


$ whereis libpng12.so.0
libpng12.so: /usr/lib64/libpng12.so.0
$ ls -l /usr/lib64/libpng12.so.0
lrwxrwxrwx. 1 root root 18 Aug 17 2014 /usr/lib64/libpng12.so.0 -> libpng12.so.0.50.0
$ rpm -qf /usr/lib64/libpng12.so.0
libpng12-1.2.50-8.fc22.x86_64
$ rpm -ql libpng12-1.2.50-8.fc22.x86_64
/usr/lib64/libpng12.so.0
/usr/lib64/libpng12.so.0.50.0
/usr/share/doc/libpng12
/usr/share/doc/libpng12/CHANGES
/usr/share/doc/libpng12/LICENSE
/usr/share/doc/libpng12/README
/usr/share/doc/libpng12/TODO
/usr/share/doc/libpng12/libpng-1.2.50.txt
$ dnf list available libpng12
Last metadata expiration check performed 8 days, 5:21:30 ago on Tue Nov 10 14:19:46 2015.
Available Packages
libpng12.i686 1.2.50-8.fc22 fedora

Jagcoxa
18th November 2015, 11:58 PM
Hello,

I've got a 32 bit package for a RS485 analyzer but it won't start due to a failed shared library. I checked with ldd to see what was missing and it appears to be missing libpng12.so.0(see output of ldd below:

librt.so.1 => /lib/librt.so.1 (0xf710d000)
libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0xf6fca000)
libXinerama.so.1 => /lib/libXinerama.so.1 (0xf6fc6000)
libSM.so.6 => /lib/libSM.so.6 (0xf6fbc000)
libpng12.so.0 => not found
libz.so.1 => /lib/libz.so.1 (0xf6fa3000)
libdl.so.2 => /lib/libdl.so.2 (0xf6f9d000)
libstdc++.so.6 => /lib/libstdc++.so.6 (0xf6e23000)
libm.so.6 => /lib/libm.so.6 (0xf6dd5000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf6db7000)
libpthread.so.0 => /lib/libpthread.so.0 (0xf6d9a000)

I checked that the i686 version of the library was installed and it is.

Not sure were else to look, any ideas?

Thanks

i am afraid you need an older version of libpng.

rpm -qa libpng should show your version on your unknown fedora version.
try:

dnf remove libpng
yum remove libpng

(depending on your fedoraversion.)
if only libpng will be removed, you may continue.
If other packages are goint to be removed, you should cancel it by pressing n.

after that you may try to install a packages from this (http://rpmfind.net/linux/rpm2html/search.php?query=libpng12.so.0(PNG12_0)) list.

Try an older one than your version, and try to install it by yum / dnf

if you see no errors you may install the package, and try if RS485 analyzer starts.

DBelton
19th November 2015, 01:47 AM
dnf install libpng12

This is not installed by default as it's and old version and should only be installed if you need it.

Edit:

the libpng12 package is in the Fedora repos. All you need to do is install it.


Available Packages
Name : libpng12
Arch : i686
Version : 1.2.50
Release : 9.fc23
Size : 160 k
Repo : fedora/23/x86_64
Summary : Old version of libpng, needed to run old binaries
URL : http://www.libpng.org/pub/png/
License : zlib
Description : The libpng12 package provides libpng 1.2, an older version of the
: libpng library for manipulating PNG (Portable Network Graphics)
: image format files. This version should be used only if you are
: unable to use the current version of libpng.

jonnier
19th November 2015, 09:44 AM
Thanks for all the responses, I managed to get it loading by running:

dnf install libpng12.i686