Page 1 of 1
how to compile php with GD support
Posted: Wed Aug 27, 2003 2:22 pm
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
Posted: Wed Aug 27, 2003 7:22 pm
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..
Posted: Thu Aug 28, 2003 8:33 am
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