libpng libpng-dev

Nab

Senior member
May 13, 2002
802
0
0
I've been looking all over the internet for these files, if anyone has them please PM/aim me.

I prefer in .rpm so that i can just double click and go. If its in another format can you please give me instructions on how to install it.

I need these two files to install MPLAYER.

Thanks.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
If your using Fedora this is what I do:

~ >: yum search libpng
Gathering header information file(s) from server(s)
Server: Fedora Core 2 OS
Server: Fedora Linux 2 - i386 - freshrpms
Server: Fedora Core 2 Stable
Server: Fedora Core 2 Released Updates
Finding updated packages
Downloading needed headers
Looking in available packages for a providing package
No packages found
Looking in installed packages for a providing package
Installed package: libpng10.i386 0:1.0.15-5 matches with
Old version of libpng, needed to run old binaries.
Installed package: libpng10.i386 0:1.0.15-5 matches with
libpng10
Installed package: libpng10-devel.i386 0:1.0.15-5 matches with
Development tools for version 1.0 of libpng
Installed package: libpng10-devel.i386 0:1.0.15-5 matches with
libpng10-devel
Installed package: libpng.i386 2:1.2.5-5 matches with
libpng
Installed package: libpng-devel.i386 2:1.2.5-5 matches with
libpng-devel
6 results returned

Of course I already had libpng installed because I have mplayer installed.

It's nice and apt-get for Debian (can use apt with Fedora BTW.) is even better because you have even more programs to pick from.

It's nice to see someone say "I use progname because blahblahblahb" so I go "apt-get install progname" or "yum install progrname" and then 8 times out of 10 I can install it easily.
 

Nab

Senior member
May 13, 2002
802
0
0
Originally posted by: drag
If your using Fedora this is what I do:

~ >: yum search libpng
Gathering header information file(s) from server(s)
Server: Fedora Core 2 OS
Server: Fedora Linux 2 - i386 - freshrpms
Server: Fedora Core 2 Stable
Server: Fedora Core 2 Released Updates
Finding updated packages
Downloading needed headers
Looking in available packages for a providing package
No packages found
Looking in installed packages for a providing package
Installed package: libpng10.i386 0:1.0.15-5 matches with
Old version of libpng, needed to run old binaries.
Installed package: libpng10.i386 0:1.0.15-5 matches with
libpng10
Installed package: libpng10-devel.i386 0:1.0.15-5 matches with
Development tools for version 1.0 of libpng
Installed package: libpng10-devel.i386 0:1.0.15-5 matches with
libpng10-devel
Installed package: libpng.i386 2:1.2.5-5 matches with
libpng
Installed package: libpng-devel.i386 2:1.2.5-5 matches with
libpng-devel
6 results returned

Of course I already had libpng installed because I have mplayer installed.

It's nice and apt-get for Debian (can use apt with Fedora BTW.) is even better because you have even more programs to pick from.

It's nice to see someone say "I use progname because blahblahblahb" so I go "apt-get install progname" or "yum install progrname" and then 8 times out of 10 I can install it easily.



i have no idea what the heck you're talking about :confused: :frown:


edit: you have to remember that i'm having a VERY tough time installing MPlayer :frown:
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
I was using Yum. It's a advanced package manager.

It's one of the 3 advanced package manager that are commonly used with Linux distros.

Basicly the distros and third parties maintain these online repositories of packaged linux programs/libraries online (btw the libxxx.so files are roughly the same as .dll files in Windows).

Yum is a program that downloads lists of these rpm package files.

Then when you want to install the program you can ask yum to install it. It looks up the package in it's list and if it finds a match it will calculate the dependances and download and install all the files you need to run the program.

Since when you use it it checks for any new files or updates you can use it to keep your OS up to date. Everything in your OS is installable or uninstallable by manipulating these RPM files. So that way you can upgrade from one numbered release to another. (If the distro developers designed that capability into the OS.)

Mandrake's special package tool for doing this is urpmi, but I don't like it because it's not well supported.

Apt-get is the most common tool. It was originally developed for the Debian operating system. However a while ago it was ported to use RPM files instead of Debian's .deb files.

Portage is used with Gentoo and it is commonly used to download source code and compile it into programs custom made for people's particular setups.

So for instance in Fedora in order to install mplayer I setup yum to use a third-party repository in addition to the normal fedora ones because fedora doesn't distribute the libdvdcss libraries needed to crack the encryption on DVD's in order to play encrypted DVD movies on a linux distro. (sort of legal gray area).

So after I did that it was as simple as going "yum install mplayer" and it automaticly took care of all that stuff like finding and downloading the extra libpng libraries needed to get it to work.

It makes it much easier to install and update your OS. By periodicly doing a "apt-get update && apt-get upgrade" for my debian desktop and "yum update" on my Fedora Core 2 Laptop, I can be sure to have the latest patchs/bugfixes/features aviable by my distro for the OS.

In Mandrake it's not so wonderfull. Urmpi is the official setup, but I haven't had to much luck with it. You can try it if you want. It roughly does the same thing as Yum or Apt.

Since Apt has been ported to use RPM's third parties to provide repositories for Mandrake.

The main thing that makes these tools work well or badly is the quality of the packages your working with. Sometimes bad authors sometimes neglegt some dependances so programs even when seemingly correctly installed may fail to run. Debian so far has the best quality of packages, Fedora is good, Gentoo is strange, but generally works. My experiance with Mandrake's quality wasn't so hot.

However I am not that familar with Mandrake, however there are online resources to help you out.

one thing that makes it easier to manually find and download RPM files is places like rpm.pbone.net

These places keep lists of aviable packages and have links to them. By doing a search for libpng shows a few packages built for mandrake. Of course it's not quite a nice as apt, but it's easier then using google (which works, you still have to end up depending on it everyonce of a while).
 

eigen

Diamond Member
Nov 19, 2003
4,000
1
0
Originally posted by: drag
I was using Yum. It's a advanced package manager.

It's one of the 3 advanced package manager that are commonly used with Linux distros.

Basicly the distros and third parties maintain these online repositories of packaged linux programs/libraries online (btw the libxxx.so files are roughly the same as .dll files in Windows).

Yum is a program that downloads lists of these rpm package files.

Then when you want to install the program you can ask yum to install it. It looks up the package in it's list and if it finds a match it will calculate the dependances and download and install all the files you need to run the program.

Since when you use it it checks for any new files or updates you can use it to keep your OS up to date. Everything in your OS is installable or uninstallable by manipulating these RPM files. So that way you can upgrade from one numbered release to another. (If the distro developers designed that capability into the OS.)

Mandrake's special package tool for doing this is urpmi, but I don't like it because it's not well supported.

Apt-get is the most common tool. It was originally developed for the Debian operating system. However a while ago it was ported to use RPM files instead of Debian's .deb files.

Portage is used with Gentoo and it is commonly used to download source code and compile it into programs custom made for people's particular setups.

So for instance in Fedora in order to install mplayer I setup yum to use a third-party repository in addition to the normal fedora ones because fedora doesn't distribute the libdvdcss libraries needed to crack the encryption on DVD's in order to play encrypted DVD movies on a linux distro. (sort of legal gray area).

So after I did that it was as simple as going "yum install mplayer" and it automaticly took care of all that stuff like finding and downloading the extra libpng libraries needed to get it to work.

It makes it much easier to install and update your OS. By periodicly doing a "apt-get update && apt-get upgrade" for my debian desktop and "yum update" on my Fedora Core 2 Laptop, I can be sure to have the latest patchs/bugfixes/features aviable by my distro for the OS.

In Mandrake it's not so wonderfull. Urmpi is the official setup, but I haven't had to much luck with it. You can try it if you want. It roughly does the same thing as Yum or Apt.

Since Apt has been ported to use RPM's third parties to provide repositories for Mandrake.

The main thing that makes these tools work well or badly is the quality of the packages your working with. Sometimes bad authors sometimes neglegt some dependances so programs even when seemingly correctly installed may fail to run. Debian so far has the best quality of packages, Fedora is good, Gentoo is strange, but generally works. My experiance with Mandrake's quality wasn't so hot.

However I am not that familar with Mandrake, however there are online resources to help you out.

one thing that makes it easier to manually find and download RPM files is places like rpm.pbone.net

These places keep lists of aviable packages and have links to them. By doing a search for libpng shows a few packages built for mandrake. Of course it's not quite a nice as apt, but it's easier then using google (which works, you still have to end up depending on it everyonce of a while).


Look at the man page for yum.You basically tell yum what package you want then it does the rest, you will need to edit your yum.conf to inlclude a good amount of repositiries.

I have the files, but you would have to untar them then make them whih you prolly don't want to do.
 

Nab

Senior member
May 13, 2002
802
0
0
Can you send me a direct link to download Apt? I dont want to download the wrong thing and get myself into more of a mess. Thanks drag for all of the useful info. I think you should personally tutor me :D.
 

Nab

Senior member
May 13, 2002
802
0
0
I found the site:
http://apt.freshrpms.net/

Which one should I download?

All the red hat stuff works for mandrake 10, right? I'm going to download it and see what happens......


edit: I downloaded the one for redhat linux but i kept getting error messages everytime i tried to install it.


You have selected a source package:

/home/nabiscc/Desktop/apt-0.5.5cnc6-fr1.src.rpm

You probably didn't want to install it on your computer (installing it
would allow you to make modifications to its sourcecode then compile it).



What should i be doing?
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Don't worry about apt for Mandrake. The one for REdhat/Fedora will only work well with with those distros.

Just use the rpmsearch stuff.

That's why I recommend Fedora nowadays over Mandrake, because mandrake lacks these advanced package tools.

But the rpmsearch is nice to use and is what I used for Redhat before I discovered the Apt4rpm stuff.

Just don't worry about yum or apt for Mandrake.
 

Nab

Senior member
May 13, 2002
802
0
0
alright i downloaded :

libpng-1.2.5-6.i386.rpm

and got this message:

Installation failed:
file /usr/lib/libpng.so.3.1.2.5 from install of libpng-1.2.5-6 conflicts with file from package libpng3-1.2.5-10mdk
file /usr/lib/libpng12.so.0.1.2.5 from install of libpng-1.2.5-6 conflicts with file from package libpng3-1.2.5-10mdk
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
ARghhh. Dependancy hell.

Looks like you have libpng already installed. Maybe it just wants libpng-dev.

What is the exact error that you get when you try to install Mplayer?
 

Nab

Senior member
May 13, 2002
802
0
0
ah #(#!


I'm going to try to install XINE .....see how that works out......i just want to play Windows Media Player 9 and Real Player files!!
 

HKSturboKID

Golden Member
Oct 20, 2000
1,816
0
0
Originally posted by: Nab
ah #(#!


I'm going to try to install XINE .....see how that works out......i just want to play Windows Media Player 9 and Real Player files!!



hey Nab,

I had the same problem when I first try to install Mplayer. All kind of dependency problems. I almost got bald pulling my hair out and ripping my monitor and threw it out the window.

If you intall APT correctly. All you have to do is.

apt-get install mplayer-gui

The above command will download and install mplayer with all the dependency for you.

I hope everything works out for you.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Originally posted by: CTho9305
Linux is ready for the desktop!!11!!!11!!!
:roll:


If Linux isn't ready for the desktop then Windows isn't either.

Try to install Mplayer on Windows and see how far you get, Troll.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: drag
Originally posted by: CTho9305
Linux is ready for the desktop!!11!!!11!!!
:roll:


If Linux isn't ready for the desktop then Windows isn't either.

Try to install Mplayer on Windows and see how far you get, Troll.

But there are plenty of alternatives for Windows, along with a "sane" installer. ;)
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Originally posted by: n0cmonkey
Originally posted by: drag
Originally posted by: CTho9305
Linux is ready for the desktop!!11!!!11!!!
:roll:


If Linux isn't ready for the desktop then Windows isn't either.

Try to install Mplayer on Windows and see how far you get, Troll.

But there are plenty of alternatives for Windows, along with a "sane" installer. ;)

Exactly. Media Player Classic, for example. (I'm not denying that my post was a troll.)
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Originally posted by: n0cmonkey
Originally posted by: drag
Originally posted by: CTho9305
Linux is ready for the desktop!!11!!!11!!!
:roll:


If Linux isn't ready for the desktop then Windows isn't either.

Try to install Mplayer on Windows and see how far you get, Troll.

But there are plenty of alternatives for Windows, along with a "sane" installer. ;)

Sane installer?

Apt-get install mplayer
Yum install mplayer

The only problem is that you have to know to use them and have repotories that support mplayer, most official ones don't support it completely because of the legal implications of some of the things that mplayer can do.

windows is easy because you everybody already understands that you have to go to different websites, find the places that produce them, give them your e-mail address, name, number, DNA sample, and credit card number. All depending of course on what program you want. Some want more some want less.

Then you have to download and install it. Usually in the form of exe installsheild type of thing, sometimes they come in zip files and you have to have a newer version of Windows or some nagware like Winzip to open them up and then deposite a folder on your desktop.

Then you have to go into your desktop folder and find a install.exe or a setup.exe or some such file to use.

then you install it.

8 times out of ten that works fine, but then you have to do and download and install the codecs for the files you want to view. Usually requires some more signing up and downloading and unzipping and all that.

Whatever. It's not rocket science either way, but a guy that has never before used Windows in his life may have some trouble with it.

Codecs can be a pain sometimes with Mplayer, too.

For instance I had to temporarially install Realplayer on my computer once to get the correct .so file for Mplayer so that I can play realplayer streams and files using it. Of course after I was done I just deleted Realplayer and it's configuration stuff, and I don't have any polution left on my computer like you would with windows. Of course its a possible, just a bit harder.

And their are easier to deal with stuff With Linux. For instance KDE and GNome have default media players aviable that play most media files. Totem for Gnome is pretty nice, I don't know what KDE uses, but it's probably nicer.

Both of those are aviable by default usually. Xine is nice, I use that for a lot of stuff, and it does AC3 passthrough easily so is use that.

But MPlayer is special. It's for media junkies and is a bit higher quality then your going to find (probably) anywere else.

The GUI for it sucks monkey-balls, but the command line is actually more powerfull and once you learn the keybindings it's nicer to use. If I want a GUI I just use Xine.

for instance it does support around 120-130 different video codecs and and probably over 40 audio codecs.

And it can do more then just play files, it has a veriaty of post-production deinterlacers and image filters that I haven't seen in any other program.

With it also comes the mencoder utility, which you can use to encode DVD's and such into AVI files for instance. Or it can take one format and encode it into others. I don't know the full capabilities of it, though. I don't do much media encoder.

It also has very good documentation.

Also for image proccessing it does nicely. I can use different video outputs to get the best quality and best performance depending on the limitations of the video card I am using. For instance I can output using OpenGL acceleration ala OS X, or I can output it into SDL media layer if I want. Personally I use XV acceleration so that I don't get any framedrops when running bunch of other applications it seems to use the least amount of CPU time for my setup.

Of course the command line I like alot. It has a GUI aviable, but I don't like it. To me that's a worlds better then the train wreck that I get when I try to use windows media player on a Windows OS. That's discusting.

Then I can do cool things like:
nc -l -p 7000 | mplayer -vo xv - &amp; ssh spock "nc 192.168.1.50 7000 < /dev/video1"
When I want to stream my mpeg2 TV capture card over my network so that I can watch TV on my laptop.

So you see why that is a bit difficult to install and setup sometimes. There is just a lot going on that you don't normally see.

For the vast majority of people that is tremendous overkill and all they care about is watching movies or whatnot, so thats why we have things like Totem or Xine. And they are usually either aviable by default or otherwise a bit easier to deal with.

Another problem is that with this guy he is using Mandrake, which is a nice enough OS with a nice setup, but lacks some of the advanced package support that is aviable in distros like Fedora, Gentoo, and Debian.

For example for Fedora I have my machine update against the offical Fedora repositories, but I also use Yum with ATrpms, Dag, and FreshRPMs.

Mandrake will probably soon have some better program installer setup, though. Urpmi is OK, they just have to get some better Docs and support for it.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: drag
Originally posted by: n0cmonkey
Originally posted by: drag
Originally posted by: CTho9305
Linux is ready for the desktop!!11!!!11!!!
:roll:


If Linux isn't ready for the desktop then Windows isn't either.

Try to install Mplayer on Windows and see how far you get, Troll.

But there are plenty of alternatives for Windows, along with a "sane" installer. ;)

Sane installer?

Apt-get install mplayer
Yum install mplayer

The only problem is that you have to know to use them and have repotories that support mplayer, most official ones don't support it completely because of the legal implications of some of the things that mplayer can do.

windows is easy because you everybody already understands that you have to go to different websites, find the places that produce them, give them your e-mail address, name, number, DNA sample, and credit card number. All depending of course on what program you want. Some want more some want less.

Then you have to download and install it. Usually in the form of exe installsheild type of thing, sometimes they come in zip files and you have to have a newer version of Windows or some nagware like Winzip to open them up and then deposite a folder on your desktop.

Then you have to go into your desktop folder and find a install.exe or a setup.exe or some such file to use.

then you install it.

8 times out of ten that works fine, but then you have to do and download and install the codecs for the files you want to view. Usually requires some more signing up and downloading and unzipping and all that.

Whatever. It's not rocket science either way, but a guy that has never before used Windows in his life may have some trouble with it.

Codecs can be a pain sometimes with Mplayer, too.

For instance I had to temporarially install Realplayer on my computer once to get the correct .so file for Mplayer so that I can play realplayer streams and files using it. Of course after I was done I just deleted Realplayer and it's configuration stuff, and I don't have any polution left on my computer like you would with windows. Of course its a possible, just a bit harder.

And their are easier to deal with stuff With Linux. For instance KDE and GNome have default media players aviable that play most media files. Totem for Gnome is pretty nice, I don't know what KDE uses, but it's probably nicer.

Both of those are aviable by default usually. Xine is nice, I use that for a lot of stuff, and it does AC3 passthrough easily so is use that.

But MPlayer is special. It's for media junkies and is a bit higher quality then your going to find (probably) anywere else.

The GUI for it sucks monkey-balls, but the command line is actually more powerfull and once you learn the keybindings it's nicer to use. If I want a GUI I just use Xine.

for instance it does support around 120-130 different video codecs and and probably over 40 audio codecs.

And it can do more then just play files, it has a veriaty of post-production deinterlacers and image filters that I haven't seen in any other program.

With it also comes the mencoder utility, which you can use to encode DVD's and such into AVI files for instance. Or it can take one format and encode it into others. I don't know the full capabilities of it, though. I don't do much media encoder.

It also has very good documentation.

Also for image proccessing it does nicely. I can use different video outputs to get the best quality and best performance depending on the limitations of the video card I am using. For instance I can output using OpenGL acceleration ala OS X, or I can output it into SDL media layer if I want. Personally I use XV acceleration so that I don't get any framedrops when running bunch of other applications it seems to use the least amount of CPU time for my setup.

Of course the command line I like alot. It has a GUI aviable, but I don't like it. To me that's a worlds better then the train wreck that I get when I try to use windows media player on a Windows OS. That's discusting.

Then I can do cool things like:
nc -l -p 7000 | mplayer -vo xv - &amp; ssh spock "nc 192.168.1.50 7000 < /dev/video1"
When I want to stream my mpeg2 TV capture card over my network so that I can watch TV on my laptop.

So you see why that is a bit difficult to install and setup sometimes. There is just a lot going on that you don't normally see.

For the vast majority of people that is tremendous overkill and all they care about is watching movies or whatnot, so thats why we have things like Totem or Xine. And they are usually either aviable by default or otherwise a bit easier to deal with.

Another problem is that with this guy he is using Mandrake, which is a nice enough OS with a nice setup, but lacks some of the advanced package support that is aviable in distros like Fedora, Gentoo, and Debian.

For example for Fedora I have my machine update against the offical Fedora repositories, but I also use Yum with ATrpms, Dag, and FreshRPMs.

Mandrake will probably soon have some better program installer setup, though. Urpmi is OK, they just have to get some better Docs and support for it.

Or I just download a codec pack for Windows, run the .exe and use Windows Media Player. ;)

cd /usr/ports/graphics/win32_codec &amp;&amp; make &amp;&amp; make install &amp;&amp; cd ../../x11/mplayer &amp;&amp; FLAVOR=win32 make &amp;&amp; FLAVOR=win32 make install

:D
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Or I just download a codec pack for Windows, run the .exe and use Windows Media Player.

cd /usr/ports/graphics/win32_codec &amp;&amp; make &amp;&amp; make install &amp;&amp; cd ../../x11/mplayer &amp;&amp; FLAVOR=win32 make &amp;&amp; FLAVOR=win32 make install

Weirdo

Well to each their own. Also there realy is a mplayer port to windows, if your curious, but it's still in beta.


I am curious as to what that "FLAVOR" stuff is. I know thats "ports" and that's a OBSD-ism, but I don't know beyond that. My experiance with ports was brief.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: drag
Or I just download a codec pack for Windows, run the .exe and use Windows Media Player.

cd /usr/ports/graphics/win32_codec &amp;&amp; make &amp;&amp; make install &amp;&amp; cd ../../x11/mplayer &amp;&amp; FLAVOR=win32 make &amp;&amp; FLAVOR=win32 make install

Weirdo

Can't deny it. :D

Well to each their own. Also there realy is a mplayer port to windows, if your curious, but it's still in beta.

I saw it. I don't use Windows enough to bother with it.

I am curious as to what that "FLAVOR" stuff is. I know thats "ports" and that's a OBSD-ism, but I don't know beyond that. My experiance with ports was brief.

There are default installs which are generally very basic. To get more options, a lot of port maintainers create FLAVORs. I could have done it all with just the FLAVOR option in the mplayer folder, it would have taken care of dependancies for me.

ie. irssi has(had?) x11 front ends. To build it on OpenBSD I would need the X11 libraries installed, unless I use the "FLAVOR=no_x11" option when I make the port.

I think IMAP-UW uses SSL by default, but there is a "FLAVOR=plaintext" if you don't want SSL.

BASH2 has a "FLAVOR=static" option.

It's kinda handy. :)