Yes, seen the date and Distro. (Red Hat) in OP too.
I landed here through Google for the SAME error but a different Distro: (OpenSuse 11.3)
In a hope to help someone else:
Code:
linux-dopx:/home/anisha/ # zypper what-provides libpng12.so.0
Retrieving repository 'Updates for openSUSE 11.3 11.3-1.82' metadata [done]
Building repository 'Updates for openSUSE 11.3 11.3-1.82' cache [done]
Loading repository data...
Reading installed packages...
S | Name | Type | Version | Arch | Repository
--+------------------+---------+--------------+--------+------------------------------------
| libpng12-0-32bit | package | 1.2.46-7.3.1 | x86_64 | Updates for openSUSE 11.3 11.3-1.82
| libpng12-0-32bit | package | 1.2.44-2.1 | x86_64 | openSUSE-11.3-Oss
| libpng12-0 | package | 1.2.46-7.3.1 | x86_64 | Updates for openSUSE 11.3 11.3-1.82
| libpng12-0 | package | 1.2.44-2.1 | x86_64 | openSUSE-11.3-Oss
| libpng12-0 | package | 1.2.44-2.1 | x86_64 | openSUSE-11.3 11.3-1.82
| libpng12-0 | package | 1.2.46-7.3.1 | i586 | Updates for openSUSE 11.3 11.3-1.82
| libpng12-0 | package | 1.2.44-2.1 | i586 | openSUSE-11.3-Oss
linux-dopx:/home/anisha/ # zypper install libpng12-0
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW package is going to be installed:
libpng12-0
1 new package to install.
Overall download size: 72.0 KiB. After the operation, additional 168.0 KiB will be used.
Continue? [y/n/?] (y): y
Retrieving package libpng12-0-1.2.46-7.3.1.x86_64 (1/1), 72.0 KiB (168.0 KiB unpacked)
Retrieving: libpng12-0-1.2.46-7.3.1.x86_64.rpm [done (0 B/s)]
Installing: libpng12-0-1.2.46-7.3.1 [done]
linux-dopx:/home/anisha/ #
and for the installation from source:
http://sourceforge.net/projects/libp...bpng12/1.2.46/