LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-30-2007, 01:44 PM   #1
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
What is png.h and where can I get it?


Hey guys,

I'm running Suse 10 on a box here at work, and I'm trying to set up a LAMP server. While compiling PHP5, I'm getting the following error:

Code:
configure: error: png.h not found.
I did a find / -name png.h and got no results. I've been hunting around for an RPM or something that will give me this, but with no luck.

Where should I be looking to resolve this problem?
 
Old 03-30-2007, 02:00 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well the first port of call is to not compile php, there should be plenty of rpm's available for suse to mean you've no reason to.

second port of call is that png.h is going to be in an rpm package called libpng-devel or png-devel on your distro cd's.
 
Old 03-30-2007, 02:01 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
I'll tackle the 'What is it" part.
It's a header file (hence the .h file extension). To be more concise, it is likely a C language header file, which would usually have a png.c and/or a png.o file to go along with it.
Typically these files are (in) the sourcecode of something written in C to be compiled, as you are, using GCC or another compiler.
To venture a guess, the file likely should be either inside the kernel source directories, or within the source location of the PHP installation you are compiling.
EDIT: See above simultaneous post!

Last edited by GrapefruiTgirl; 03-30-2007 at 02:03 PM.
 
  


Reply



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
Webalizer: configure: error: png library not found... please install png. mikeshn Linux - Software 5 01-10-2005 02:28 PM
Proper way to get png.h jpbarto Linux - Software 5 08-19-2004 09:31 AM
need help with X, can't see png files!!! thehundredthone Linux - Software 1 02-19-2004 05:57 PM
why opensource always use png? demmylls Linux - General 1 02-01-2004 12:06 PM
Where is trashcan_full/empty.png and kmenu.png??? d33pdream Linux - General 2 02-25-2003 11:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:42 PM.

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