LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 03-05-2004, 02:31 PM   #1
Trey2501
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 26

Rep: Reputation: 15
Unhappy 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:

Code:
libpng: /usr/lib/libpng.a /usr/lib/libpng.so /usr/lib/libpng12.a /usr/lib/libpng12.so /usr/local/lib/libpng12.a /usr/local/lib/libpng.a /usr/local/lib/libpng.so /usr/local/lib/libpng12.so /usr/include/libpng /usr/share/man/man3/libpng.3.gz
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.
 
Old 03-05-2004, 02:53 PM   #2
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Why do you have another copy in /usr/local ? did you try to install it from the source before or use a third party RPM?
 
Old 03-05-2004, 02:54 PM   #3
Trey2501
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 26

Original Poster
Rep: Reputation: 15
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:

libpng-1.2.2-17
libpng-devel-1.2.2-17
libpng10-1.0.13-9

The version numbers match!!! And I am still getting the same error when I try to run configure --enable-gui. Help!!!
 
Old 03-05-2004, 02:55 PM   #4
Trey2501
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 26

Original Poster
Rep: Reputation: 15
I used a third-party RPM.
 
Old 03-05-2004, 03:03 PM   #5
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
try getting rid of libpng files in /usr/local/lib
then reinstall libpng and libpng-devel from the fedora RPM

Last edited by Demonbane; 03-05-2004 at 03:06 PM.
 
Old 03-05-2004, 03:17 PM   #6
Trey2501
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 26

Original Poster
Rep: Reputation: 15
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.

Sorry if this is frustrating, but I am lost!
 
Old 03-05-2004, 03:19 PM   #7
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
use "rpm -e --nodeps" to uninstall it
then reinstall
 
Old 03-05-2004, 03:40 PM   #8
Trey2501
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 26

Original Poster
Rep: Reputation: 15
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
 
Old 03-05-2004, 03:44 PM   #9
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
try killing all zombie RPM processes, if that doesnt help just do a reboot
 
Old 03-05-2004, 03:49 PM   #10
Trey2501
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 26

Original Poster
Rep: Reputation: 15
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.
 
Old 03-05-2004, 03:55 PM   #11
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Do a rpm --rebuilddb
don't worry about uninstalling, try ./configure MPlayer again, if necessary use "rpm -i --force" to reinstall these libpng packages
 
Old 03-05-2004, 04:09 PM   #12
Trey2501
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 26

Original Poster
Rep: Reputation: 15
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.

This is turning into a nightmare.
 
Old 03-05-2004, 04:24 PM   #13
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
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

If everything fails try compiling libpng from the source
http://aleron.dl.sourceforge.net/sou...-1.2.5.tar.bz2
use makefile.linux and change the prefix to /usr

Last edited by Demonbane; 03-05-2004 at 04:34 PM.
 
Old 03-05-2004, 05:23 PM   #14
Trey2501
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 26

Original Poster
Rep: Reputation: 15
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

pygtk2-2.0.0-1
gtkam-0.1.7-6.1
gtk-engines-0.12-1
gtk+-devel-1.2.10-28.1
pygtk2-libglade-2.0.0-1
usermode-gtk-1.69-1
gtkhtml2-2.4.0-1
authconfig-gtk-4.3.8-1
gtkspell-2.0.4-2
gtkhtml-1.1.9-5
gtk2-engines-2.2.0-3
gtkhtml3-3.0.9-5
gtksourceview-0.6.0-2
gtk+-1.2.10-28.1
mtr-gtk-0.52-3
gtk2-2.2.4-5.1
gnome-python2-gtkhtml2-2.0.0-2
 
Old 03-05-2004, 05:54 PM   #15
Trey2501
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 26

Original Poster
Rep: Reputation: 15
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?

Man, I suck at this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mplayer & libpng-dev? berkay Linux - Software 4 01-19-2007 01:08 PM
libpng and libpng-devel missing in mplayer configure mmarkvillanueva Linux - Software 2 11-29-2005 10:40 PM
Mplayer Help (libpng problem) benjaminzsj Linux - Newbie 3 03-18-2005 10:14 PM
Not installing libpng-devel on CL10 sanmartin Linux - Software 0 02-16-2005 02:51 PM
mplayer and gtk-devel and libpng-devel ... purpleburple Linux - Software 1 03-16-2003 03:57 AM


All times are GMT -5. The time now is 01:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration