LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-25-2006, 02:04 PM   #1
blong4life
Member
 
Registered: Jun 2006
Distribution: Fedora Core 8, RHEL 4, CentOS 5
Posts: 44

Rep: Reputation: 15
php compiling error on FC4


I am working on setting up a server, i was compiling php 5.1.6 on my FC4 server, and I am using this for the configure command:

Code:
'./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--prefix=/usr' '--with-mbstring' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-xpm-dir=/usr/X11R6' '--with-mcrypt' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pspell' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--with-zlib'
But when it gets to png or jpeg..it says "Cannot find libpng.(a|so)."

So my quetion is this...ae the paths correct for the gd components, I did an updatedb and a locate -i, then put those paths in, yet but nothing.

If you can please help thanks

Im not sure if I have the libs installed, but I dont know were to find them, but ive done it before.
 
Old 10-26-2006, 06:08 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You need to install the development packages for libjpeg (libjpeg6b-devel or libjpeg-devel) and libpng (libpng-devel).
 
Old 10-26-2006, 03:19 PM   #3
blong4life
Member
 
Registered: Jun 2006
Distribution: Fedora Core 8, RHEL 4, CentOS 5
Posts: 44

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by reddazz
You need to install the development packages for libjpeg (libjpeg6b-devel or libjpeg-devel) and libpng (libpng-devel).
Can this be done via yum or do i have to compile these too??
 
Old 10-27-2006, 06:06 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can use yum. You can search for the exact package names by doing something like,
Code:
$yum list | grep -i libpng
All packages with the name "libpng" will be found. Install the one that has a "-devel" at the end.
 
Old 10-28-2006, 07:50 PM   #5
blong4life
Member
 
Registered: Jun 2006
Distribution: Fedora Core 8, RHEL 4, CentOS 5
Posts: 44

Original Poster
Rep: Reputation: 15
sweet worked, thanks
 
  


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
php compiling error on FC4 blong4life Linux - Newbie 2 10-26-2006 12:28 PM
error during compiling php an2ny_18 Debian 2 03-10-2006 12:46 PM
Error compiling kernel 2.6.12.4 in FC4 ilyushin Linux - Newbie 1 08-17-2005 01:23 PM
Error compiling PHP theprophet Fedora 2 12-15-2004 05:32 PM
error compiling php nrmx Linux - Software 0 03-13-2003 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:23 AM.

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