LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   MPlayer install problems with libpng & libpng-devel (https://www.linuxquestions.org/questions/linux-newbie-8/mplayer-install-problems-with-libpng-and-libpng-devel-153903/)

Trey2501 03-05-2004 02:31 PM

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.

Demonbane 03-05-2004 02:53 PM

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?

Trey2501 03-05-2004 02:54 PM

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!!!

Trey2501 03-05-2004 02:55 PM

I used a third-party RPM.

Demonbane 03-05-2004 03:03 PM

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

Trey2501 03-05-2004 03:17 PM

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!

Demonbane 03-05-2004 03:19 PM

use "rpm -e --nodeps" to uninstall it
then reinstall

Trey2501 03-05-2004 03:40 PM

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

Demonbane 03-05-2004 03:44 PM

try killing all zombie RPM processes, if that doesnt help just do a reboot

Trey2501 03-05-2004 03:49 PM

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.

Demonbane 03-05-2004 03:55 PM

Do a rpm --rebuilddb
don't worry about uninstalling, try ./configure MPlayer again, if necessary use "rpm -i --force" to reinstall these libpng packages

Trey2501 03-05-2004 04:09 PM

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.

Demonbane 03-05-2004 04:24 PM

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

Trey2501 03-05-2004 05:23 PM

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

Trey2501 03-05-2004 05:54 PM

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.


All times are GMT -5. The time now is 04:57 AM.