| Gentoo This forum is for the discussion of Gentoo Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-08-2012, 05:40 AM
|
#1
|
|
Member
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 359
Rep:
|
Why does emacs-23.3-r2 still need libpng12.so.0?
I have just completed
Code:
emerge -avDu world
revdep-rebuild
cfg-update -u
and cannot run emacs.
Code:
$ emacs
emacs: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
Why does emacs still need libpng12?
How do I get past the problem?
Jim
|
|
|
|
01-08-2012, 06:16 AM
|
#2
|
|
Member
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 314
Rep:
|
I think there was a thread in forums.gentoo.org about updating libpng. If I remember right I run:
Code:
revdep-rebuild --library '/usr/lib64/libpng14.so.14'
and after that there was a five-line-one-liner that ensured every symbolic link was updated. Have you done these?
|
|
|
|
01-08-2012, 06:46 AM
|
#3
|
|
Member
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 359
Original Poster
Rep:
|
No, only what I did in the previous message. I have 64-bit hardware but the system is 32-bit.
I have tried linking libpng12.so.0 to other versions, but emacs (or something it calls) checks for an identification string in the library and rejects the link.
Edit: I just tried the above command, changing lib64 to lib, and nothing was rebuilt.
Last edited by CollieJim; 01-08-2012 at 06:53 AM.
|
|
|
|
01-08-2012, 06:50 AM
|
#4
|
|
Member
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 314
Rep:
|
Restore the link and try the revdep-rebuild I posted above. You can try it with --pretend option first to see what is going to happen. If that fails too, you could try reemerge emacs.
Edit: probably you want this:
Code:
revdep-rebuild --pretend --library '/usr/lib/libpng12.so.12'
Also, check this.
Last edited by segmentation_fault; 01-08-2012 at 06:56 AM.
|
|
|
|
01-08-2012, 06:58 AM
|
#5
|
|
Member
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 359
Original Poster
Rep:
|
All that happens with the revdep-rebuild is it wants to rebuild app-text/xpdf but could not find anything.
I have tried rebuilding emacs to no avail.
|
|
|
|
01-09-2012, 05:02 AM
|
#6
|
|
Member
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 359
Original Poster
Rep:
|
I got a copy of libpng12.so.0 from a backup.
It's curious, though, that emacs still depends on an old library...
|
|
|
|
01-09-2012, 04:26 PM
|
#7
|
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,971
|
There are a few things you should try.
First, check the output for "which emacs" (or whatever the command is) and then double check that the listed binary file is part of the emacs package, using your favourite portage tool (i.e. equery or the like), and not some other emacs version you installed by hand.
It should probably be under /usr/bin/emacs, so try running it with the fully qualified path just to be sure.
Use find or whatever tool you prefer to locate all the libpng versions in your system. There's probably some leftover somewhere causing this pain. Also, see what libpng versions portage lists.
You should also try searching at forums.gentoo.org and read about the issues people experienced when migrating to libpng-1.4 because of the infamous ABI break. I don't remember anything about emacs, concretely, but it might worth a check.
Last, but not least, even if emacs truly needs libpng-1.2 (and I really doubt it, but I am not going to bother installing emacs just to check), you could just do "emerge emacs:1.2" and at least portage will know that the lib is installed. No need to pick random libs and put them into your fs. And in any case, I really disregard that kind of practice, because it can cause issues like the one you are experiencing right now and some darker ones.
|
|
|
|
01-10-2012, 11:21 PM
|
#8
|
|
Member
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 359
Original Poster
Rep:
|
Thanks. It's not the first time (or even the 10th) that I've been caught out executing something other than what I expect. There was an old copy in /usr/local/bin. The current emacs does not need libpng12 after all.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:01 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|