By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,628 Members | 1,880 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,628 IT Pros & Developers. It's quick & easy.

Compiling PHP with GD support.

P: 18
ok, the problem is :

i have php 4.3 on fedora 3 (linux) and i have downloaded a code for GD library and it is working on on local server of PHP 5.2 , and apache 2.2 , the problem is that i don't know how to activate the GD library on linux coz i think it need some additional libraries so plz if someone have any idea about this help me plz coz i am running out of time.
Jul 20 '07 #1
Share this Question
Share on Google+
3 Replies

Expert 5K+
P: 5,821
Changed thread title to better describe the problem (did you know that threads whose titles contain phrases such as, 'urgent problem plz help' actually get FEWER responses?).

Heya, Akkad.

Actually, PHP comes with a bundled version of GD that is supposed to be more compatible with PHP than the standard GD. When you are configuring PHP, add the '--with-gd' option, and the configure script will take care of the rest.

You may want to install Freetype, libjpeg and libpng, though.
Jul 21 '07 #2

Expert 100+
P: 1,044
On old PHP versions, you may need to download DLL files from the GD website. Also, I believe that even after compiling PHP with GD (which is automatic now that GD is the best library available), you must activate the extension in your php.ini file.
Jul 21 '07 #3

P: 18
Hi, thanx for the advice

what u meant by when configuring PHP i should add '--with-gd' , i think u meant when i will install the PHP on my server, but as u know that fedora come with php and apache installed in it as another versions of linux so related to this i had these problems:

1. how to uninstall installed version of php and download PHP 5.0 which i think will solve the problem.
2. when i tried to install PHP 5.0 and overwrite the old versions problems arised :
after typing ./configure it gives alot of yes and no and this message

Generating files
./configure: line 115307: ./build/shtool: Permission denied
./configure: line 115328: ./build/shtool: Permission denied
./configure: line 115329: ./build/shtool: Permission denied
./configure: line 115330: ./build/shtool: Permission denied

after the second time installation i have also this message when typing the command Make
/bin/sh /root/php-5.2.3/php-5.2.3/libtool --silent --preserve-dup-deps --mode=compile gcc -I/root/php-5.2.3/php-5.2.3/ext/pdo_sqlite/sqlite/src -DPDO_SQLITE_BUNDLED=1 -DSQLITE_OMIT_CURSOR -DTHREADSAFE=0 -I/root/php-5.2.3/php-5.2.3/ext -Iext/pdo_sqlite/ -I/root/php-5.2.3/php-5.2.3/ext/pdo_sqlite/ -DPHP_ATOM_INC -I/root/php-5.2.3/php-5.2.3/include -I/root/php-5.2.3/php-5.2.3/main -I/root/php-5.2.3/php-5.2.3 -I/usr/include/libxml2 -I/root/php-5.2.3/php-5.2.3/ext/date/lib -I/root/php-5.2.3/php-5.2.3/TSRM -I/root/php-5.2.3/php-5.2.3/Zend -I/usr/include -g -O2 -c /root/php-5.2.3/php-5.2.3/ext/pdo_sqlite/sqlite/src/parse.c -o ext/pdo_sqlite/sqlite/src/parse.lo
make: *** No rule to make target `ext/standard/../../main/build-defs.h', needed by `ext/standard/info.lo'. Stop.
[root@traffic php-5.2.3]# make test
make: *** No rule to make target `ext/standard/../../main/build-defs.h', needed by `ext/standard/info.lo'. Stop.

after typing make install i am having the following messages:

make: *** No rule to make target `ext/standard/../../main/build-defs.h', needed by `ext/standard/info.lo'. Stop.

so plz tell me what should i do and if its better to keep the old version of PHP 4.3 or installing the new PHP 5.2 and how to deal with this problems
Jul 23 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.