You are not logged in.

#1 2010-03-22 17:08:08

mik01aj
Member
Registered: 2008-08-22
Posts: 8
Website

Applications try to load libpng12.so.0

Hi,
I just updated libpng from 1.2.40-1 to 1.4.0-2, and evince, gedit, thunar, and some other apps stopped working. It says:

evince: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

I see that libpng has moved to /usr/lib/libpng14.so.14.

I tried upgrading evince, but it didn't help (and it finished with a warning - gtk-update-icon-cache: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory).

I admit that I didn't upgrade anything for a long time (only if I needed something), so it may be the problem. (I just thought, that pacman will manage differences in versions). If it is so, please tell me which packages might need to be upgraded.

I supose I could fix it with a symlink, but it doesn't appear as "the right solution" to me smile

Basically, the problem is: how to tell evince (and all other apps) that they try to load a wrong version of libpng?

Thanks in advance.
MD

Last edited by mik01aj (2010-03-22 17:15:39)

Offline

#2 2010-03-22 17:15:37

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Applications try to load libpng12.so.0

you are assuming wrong. a dependency of evince is needing libpng12 and i were in your place, i'll start by looking at what unsupported packages you got.

pacman -Qm

if you got cairo-lcd/ubuntu/whatever, you have to get the latest version from aur and rebuild it yourself. after that reinstall gtk2


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-03-22 17:20:48

mik01aj
Member
Registered: 2008-08-22
Posts: 8
Website

Re: Applications try to load libpng12.so.0

I removed gif2png (it was the only dependency of libpng>=1.4.0), downgraded libpng and everything works now. Thank you! smile

Offline

#4 2010-03-22 17:22:49

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Applications try to load libpng12.so.0

mik01aj wrote:

I removed gif2png (it was the only dependency of libpng>=1.4.0), downgraded libpng and everything works now. Thank you! smile

what? i didn't say to do anything like that. downgrading is not a solution. now every application is built against new libpng and you'll have problems in the future.

just fully update your system. pacman -Syu and start finding what are you doing wrong.


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2010-03-22 18:08:35

mik01aj
Member
Registered: 2008-08-22
Posts: 8
Website

Re: Applications try to load libpng12.so.0

Ok, maybe you're right.
I did as you said, and started by upgrading gtk2, which fixed the problem with libpng, but left me with another error:

evince: error while loading shared libraries: libjpeg.so.7: cannot open shared object file: No such file or directory

I would do as you say, and upgrade everything, but I get a dependency error - kdelibs: requires phonon.
And I can't install phonon, as it would remove Qt, and a lot of applications require Qt (should I use --force here?).

Offline

#6 2010-03-22 18:22:55

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: Applications try to load libpng12.so.0

Use --asdeps as the news item says to do.

Offline

#7 2010-03-23 00:41:46

chisiyuan
Member
Registered: 2009-10-18
Posts: 24

Re: Applications try to load libpng12.so.0

there is a libpng12 in AUR. Try it after you pacman -Syu. I have libpng in extra and libpng12 in AUR installed. They don't conflict.


Awesome is awesome.

Offline

#8 2010-03-23 01:29:14

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: Applications try to load libpng12.so.0

Recompile the software that's linked against the old libpng...

Offline

#9 2010-03-23 07:35:00

mik01aj
Member
Registered: 2008-08-22
Posts: 8
Website

Re: Applications try to load libpng12.so.0

wonder wrote:

just fully update your system. pacman -Syu and start finding what are you doing wrong.

I did pacman -Syu, it took about 2 hours. But everything was updated successfully - no more problems with missing libraries (hopefully) smile
Thank you smile

Offline

Board footer

Powered by FluxBB