Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-28-2007, 09:59 AM   #1
LQ Newbie
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
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 and got the same error):

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

[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?
Old 03-29-2007, 10:11 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Hi and welcome to LQ. You probably need to install the devel package of libpng and not libpng itself because its already installed.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
zlib problem when installing libpng SpinningCone Linux - Software 7 10-21-2011 10:47 AM
error while loading shared libraries: [I reinstalled libPNG!] Shioni Linux - Software 1 09-09-2006 07:21 PM
Error compiling VBA "Cannot find libPng" dustin_wielenga Linux - General 1 03-06-2005 02:39 AM
Installing Software Problem. Easy for you, impossible for me (libpng) tyleradam Linux - Software 7 10-14-2004 01:08 PM
installing libpng problem yocompia Linux - Newbie 1 06-14-2003 09:41 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration