||03-28-2007 10:59 AM
CentOS -- problem installing dvipng -- error: cannot find/use libpng
I just installed tetex, from which I got latex and a bunch of other stuff. My ultimate goal is to enable latex functionality on various websites. In order to do that, however, I first need the dvipng program. Dvipng converts dvi files to png's.
My problem is that when I run ./configure on the dvipng-1.9 source I downloaded from sourceforge (it's not in the repositories set for my web hosting's package manager, up2date), I get the following error (also, note that I tried downloading the package from savannah.gnu.org and got the same error):
./configure checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gs... gs checking whether gs has the pngalpha device... no
checking whether gs has the png16m device... yes configure: WARNING: Your EPS inclusions will be cropped to the boundingbox, and rendered on an opaque background. Upgrade GhostScript to avoid this.
checking for pow in -lm... yes
checking for deflate in -lz... no
checking for basename in -lgen... no
checking for png_read_image in -lpng... no
configure: error: cannot find/use libpng
Yet I clearly DO have libpng, because when I try to install it through my package manager, I get this output:
[root@vps dvipng-1.9]# up2date -i libpng Fetching Obsoletes list for
Fetching Obsoletes list for channel: centos-3-addons...
Fetching Obsoletes list for channel: centos-3-updates...
Fetching Obsoletes list for channel: centos-3-extras...
Fetching rpm headers... ########################################
Name Version Rel ----------------------------------------------------------
The following packages you requested are already updated: libpng
So what's up with this, why can't dvipng's configure find/use libpng when I clearly have it? If you don't know the answer, can you direct me to where I can find the answer?