how to compile php with GD support

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
vikasdua79
Forum Newbie
Posts: 1
Joined: Wed Aug 27, 2003 2:22 pm

how to compile php with GD support

Post by vikasdua79 »

:?:

I have php4.3.2 and apache 2.0.27 running absolutely fine on linux Redhat 8 machine.
Recently i came across a project where i need GD support. I have dowloaded and installed gd-2.0.15 but i dont know how to compile php with GD and retain all my settings.

Looking forward to your help.
Thanks
Vikas
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post by Stoker »

look at the current options with a phpinfo() command and copy that confihure line, download the PHP source and follow the instructions in README and INSTALL on how to compile, make sure you use the same configure options as your current one and add gd, something like --with-gd (do a ./configure --help to see all the options). This may require you to install quite a few additional package headerfiles for the configure successfully, I have little experience with redhat and their sucky rpm system so I wouldnt know exactly which packegs to get.. if you get errors, search around and if you cant figure it our post the details here and perhaps someone can give you a tip on what package it is..
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

phpinfo() will tell you about the options used when php was compiled.
Since gd is noted in the changelog of the redhat build there is a chance gd is already supported. Might be you have to find/install php_gd.so
Post Reply