Author Topic: CentOS -- problem installing dvipng -- error: cannot find/use libpng  (Read 3259 times)

0 Members and 2 Guests are viewing this topic.

Offline Ender

  • x86
  • Hero Member
  • *****
  • Posts: 2390
    • View Profile
Another problem on my VPS.

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):

Code: [Select]
[root@vps dvipng-1.9]#
./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:

Code: [Select]
[root@vps dvipng-1.9]# up2date -i libpng Fetching Obsoletes list for
channel: centos-3-base...
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?

Offline nslay

  • Hero Member
  • *****
  • Posts: 786
  • Giraffe meat, mmm
    • View Profile
Re: CentOS -- problem installing dvipng -- error: cannot find/use libpng
« Reply #1 on: March 29, 2007, 12:29:57 am »
type './configure --help'
It should have an option where you can manually tell it where libpng is.
An adorable giant isopod!

Offline Ender

  • x86
  • Hero Member
  • *****
  • Posts: 2390
    • View Profile
Re: CentOS -- problem installing dvipng -- error: cannot find/use libpng
« Reply #2 on: March 29, 2007, 04:43:26 pm »
OH, the reason was because I needed to install libpng-devel.

Thanks for the response though, nslay. I imagine I'll be posting for help again soon, still haven't beaten the more general problem yet =\