error while loading shared libraries: libpng16.so.16

Issues related to applications and software problems
Post Reply
dylan666
Posts: 4
Joined: 2018/04/19 13:42:03

error while loading shared libraries: libpng16.so.16

Post by dylan666 » 2018/04/19 13:50:21

Hi everybody!
I'am tring to run a ./setup command to run a 32 bit (I think) software on a 64 bit Centos 7
I get this error:

Code: Select all

error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory
I tried doing this:

Code: Select all

wget https://jaist.dl.sourceforge.net/project/libpng/libpng16/older-releases/1.6.21/libpng-1.6.21.tar.gz && tar -zxvf libpng-1.6.21.tar.gz 
cd libpng-1.6.21
./configure --prefix=/usr/local/png --enable-shared LDFLAGS="-L/usr/lib -lz"
sudo make 
sudo make install
sudo ldconfig
The folder "/usr/lib/libpng16.so.16" exits but I get the same message.
Where is my problem? Please give me simple hints because I'm a very beginner about linux
Thanks in advance for your help

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: error while loading shared libraries: libpng16.so.16

Post by TrevorH » 2018/04/19 14:12:31

What is it that you're trying to build? Trying to shoehorn newer versions of libraries onto an older distro is not going to end well. We ship libpng-1.5.13 which provides /usr/lib/libpng15.so.15 not libpng16.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

dylan666
Posts: 4
Joined: 2018/04/19 13:42:03

Re: error while loading shared libraries: libpng16.so.16

Post by dylan666 » 2018/04/19 14:50:31

I'm trying to install this:
https://www.canon-europe.com/support/pr ... anguage=EN

For Ubuntu I extract the cque-it-x.x-x.i386.tar.gz archive from the ZIP, the I extract the cque folder from the TAR.GZ archive and the run this:

Code: Select all

sudo ./setup
sudo cque
Doing the same with CentOS I get that error

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: error while loading shared libraries: libpng16.so.16

Post by TrevorH » 2018/04/19 15:47:31

I'm afraid there is no clean solution for this without destroying your distro. Report it to them as a bug - they depend on a newer version of libpng than we ship.

Shipping binary tarballs for printer drivers is bad news in any case. Next time I'd recommend getting a printer from a manufacturer with decent linux support. Sorry.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

dylan666
Posts: 4
Joined: 2018/04/19 13:42:03

Re: error while loading shared libraries: libpng16.so.16

Post by dylan666 » 2018/04/19 16:26:01

I found an older version of that driver and now the error is this:

Code: Select all

./setup: error while loading shared libraries: libpng12.so.0: cannot open shared
Is there a way to fix it now that it's looking for an older version?

Thanks for your help

dylan666
Posts: 4
Joined: 2018/04/19 13:42:03

Re: error while loading shared libraries: libpng16.so.16

Post by dylan666 » 2018/04/19 16:39:16

Ok, the solution was simple:

Code: Select all

sudo yum install libpng12.so.0
This is the link to download the CQue_v3.0.4_Linux_32_64_EN.tar.zip file:
http://www.canonsupportdriver.com/canon ... -download/

Now "sudo ./setup" gives this message:

Code: Select all

SELinux running, but no file cque.pp found.
How is this possibile? This is my "ls" ouput

Code: Select all

[user@localhost cque-en-3.0-4]$ ls
cque3.0.png  CQUEINST.CONF  doc     ppd    sicgsfilter
CQue.exe     cque.pp        images  setup  sicnc
What's wrong?
However "sudo ./Cque.exe" seems working.
But I get some errors about fonts.
I fixed some of them with "sudo yum install xorg-x11-fonts*"
But now I have this one: "Warning: Cannot convert string "-*-lucida-bold-r-normal--10-*" to type FontStruct"
What should I do?

Thanks in advance

Post Reply