LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   how to install gd in php-5.4.5 (https://www.linuxquestions.org/questions/linux-server-73/how-to-install-gd-in-php-5-4-5-a-4175420145/)

ramecare 08-03-2012 04:15 AM

how to install gd in php-5.4.5
 
Dear all,

I have installed php-5.4.5.tar.gz in my linux box by using the below link http://laffers.net/howtos/howto-install-php/ and now in my system i want to install gd in my php and how do i install gd in already installed php.5.4.5,can any one help me on this

Thanks,

knudfl 08-03-2012 04:54 AM

Your link : http://laffers.net/howtos/howto-install-php/ :
That's a short configure line for php ! Usually 70+ options are included.

Please have a look into the file php.spec in ...
http://dl.fedoraproject.org/pub/fedo...1.fc17.src.rpm
> php-5.4.1-1.fc17.src.rpm

Amonst the many included options, you will find (line 702..918):
--with-gd=shared
--enable-gd-native-ttf

I.e. you will have to recompile php with gd to have it included.

.

ramecare 08-03-2012 04:59 AM

Hi !

How do i recompile php with gd to have it included using php-5.4.1-1.fc17.src.rpm and can u please explain

Thanks,

knudfl 08-03-2012 05:02 AM

Which 'Linux OS' are you using ?

Name and version, please.

ramecare 08-03-2012 05:06 AM

Iam using CentOS release 5.6 (Final) and Apache 2.4.2


All times are GMT -5. The time now is 08:11 PM.