MPlayer install problems with libpng & libpng-devel
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
MPlayer install problems with libpng & libpng-devel
I am trying to install MPlayer on Fedora Core 1 and have been having the common problems with libpng and libpng-devel dependencies. I installed libpng & libpng devel:
whereis libpng-devel returns no results, yet when I try to re-install libpng-devel, I get this error:
Code:
package libpng-devel-1.2.2-17 (which is newer than libpng-devel-1.2.2-16) is already installed
file /usr/lib/libpng12.a from install of libpng-devel-1.2.2-16 conflicts with file from package libpng-devel-1.2.2-17
file /usr/share/man/man3/libpng.3.gz from install of libpng-devel-1.2.2-16 conflicts with file from package libpng-devel-1.2.2-17
file /usr/share/man/man3/libpngpf.3.gz from install of libpng-devel-1.2.2-16 conflicts with file from package libpng-devel-1.2.2-17
[root@localhost download]# rpm -if libpng-devel-1.2.2-16.i386.rpm
package libpng-devel-1.2.2-17 (which is newer than libpng-devel-1.2.2-16) is already installed
file /usr/lib/libpng12.a from install of libpng-devel-1.2.2-16 conflicts with file from package libpng-devel-1.2.2-17
file /usr/share/man/man3/libpng.3.gz from install of libpng-devel-1.2.2-16 conflicts with file from package libpng-devel-1.2.2-17
file /usr/share/man/man3/libpngpf.3.gz from install of libpng-devel-1.2.2-16 conflicts with file from package libpng-devel-1.2.2-17
So, apparently libpng-devel is already installed! Yet, when I try to run /configure --enable-gui I get the standard error about needed these for GUI support.
I did a thorough googling of all of the old responses to this question, and tried setting my LD_LIBRARY_PATH to /usr/lib (where the files are) and STILL doesn't work. Any help on this would be GREATLY appreciated.
On further analysis, the output of the configure script includes:
Checking for PNG support ... no (mismatch of library and header versions)
So, I uninstalled libpng and libpng-devel and re-installed, making sure the version numbers were the same. When I execute rpm -qa | grep libpng I get the following:
OK, I did rm libpng* in /usr/local/lib & I re-installed libpng-devel, however, I can't uninstall libpng because when I try and do rpm -e on libpng, it tells me that it is needed by all these installed applications.
Ok, after trying that, my terminal hung and had to be shut down. When i tried it again, I got
rpm -e --nodeps libpng
error: cannot get exclusive lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Operation not permitted (1)
error: cannot open Packages database in /var/lib/rpm
OK, after killing all of the rpm processes and retrying that command, it just sits there after I hit enter. No HDD activity, just waiting. a Ctrl-C does not interrupt. This also occurred after a reboot. Apparently it doesn't want to let me uninstall libpng.
Do a rpm --rebuilddb
don't worry about uninstalling, try ./configure MPlayer again, if necessary use "rpm -i --force" to reinstall these libpng packages
Haha, well I can't start KDE now because it's missing /usr/lib/gtk-2.0/2.2.0/loaders/libpixbufloader-png.ps: libpng12.so.0, so I used the command line to ftp libpng and reinstall and am still getting the same error.
You don't need KDE to do all this
the rpm engine can be unreliable at times, the only solution I know at this point is doing a reboot when all rpm processes appear to hang.
If you're still having trouble reinstalling it try this:
cd to /
rpm2cpio /path/to/libpng-1.2.2-17.rpm | cpio -idv
then do a /sbin/ldconfig
that should at least get your KDE back
OK, I'm back up and running and I got the X11 error, so I installed XFree86-devel and whatnot. Then I re-ran configure and now I'm getting the GTK errors. I have gtk and gtk-devel installed! The output of rpm -aq | grep gtk is
Additionally, I'm pretty sure that I have two versions of zlib and libpng installed on my computer now. Any idea how I could verify this and remove one?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.