LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-15-2004, 08:02 AM   #1
turbo_acura
Member
 
Registered: Sep 2004
Location: London, UK
Posts: 95

Rep: Reputation: 15
PHP compiling issues


when I try to compile PHP (w/ apache), it says the libpng.a|so is not found. I've added /usr/local/lib and /usr/lib to /etc/ld.so.conf and did a 'ldconfig'. I have a libpng.so.3 which i'm assuming is a newer version of the file? i could just create a static link 'ln -s' but i'm guessing there are tons of other files that woud need linking. The compile recommends maybe trying a '--with-jpeg-dir' which I have no idea what that is. I'm running Redhat Enterprise 3.0.

Thanks!
 
Old 10-15-2004, 09:09 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
What version of libpng do you have installed?

rpm -qa | grep libpng

This will tell you the version. And what version of PHP are you trying to install? Do you also have a libpng12.so.0 file? The latest version of libpng is libpng-1.2.5
 
Old 10-15-2004, 09:17 AM   #3
turbo_acura
Member
 
Registered: Sep 2004
Location: London, UK
Posts: 95

Original Poster
Rep: Reputation: 15
I have libpng 1.2.2-22 running. I do have the file libpng.so.0 I'm trying to install PHP 4.3.9
 
Old 10-15-2004, 09:18 AM   #4
turbo_acura
Member
 
Registered: Sep 2004
Location: London, UK
Posts: 95

Original Poster
Rep: Reputation: 15
even though libpng is already installed as 1.2.2-22, the file PHP is looking for when its compiling is 'libpng.so.0' and that file isn't there..would it make a difference if i upgrade to 1.2.5 and install the libpng.so.0 file?
 
Old 10-15-2004, 09:20 AM   #5
turbo_acura
Member
 
Registered: Sep 2004
Location: London, UK
Posts: 95

Original Poster
Rep: Reputation: 15
sorry, the other reply i meant that, i do have the file libpng12.so.0, NOT libpng.so.0 (otherwise I wouldn't have this problem!) :P
 
Old 10-15-2004, 10:23 AM   #6
turbo_acura
Member
 
Registered: Sep 2004
Location: London, UK
Posts: 95

Original Poster
Rep: Reputation: 15
One other thing I looked into is when i compile php with the option '--with-gd' I think that could be the problem..
 
Old 10-15-2004, 11:17 AM   #7
turbo_acura
Member
 
Registered: Sep 2004
Location: London, UK
Posts: 95

Original Poster
Rep: Reputation: 15
I figured it out! I installed GD
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
re-compiling issues Ab3n Debian 17 01-18-2005 12:04 AM
Re-compiling PHP lumux Linux - Software 1 01-12-2004 01:25 PM
compiling PHP 4.3.4 bmw5002 Linux - Software 2 12-27-2003 02:01 PM
Compiling PHP Risen Linux - Software 3 10-13-2003 12:28 PM
compiling PHP WiWa Linux - Software 4 10-07-2003 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:38 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