Compiling PHP with GD support.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Akkad
    New Member
    • Jun 2007
    • 18

    Compiling PHP with GD support.

    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.
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    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.

    Comment

    • kovik
      Recognized Expert Top Contributor
      • Jun 2007
      • 1044

      #3
      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.

      Comment

      • Akkad
        New Member
        • Jun 2007
        • 18

        #4
        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
        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_BUN DLED=1 -DSQLITE_OMIT_CU RSOR -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

        Comment

        Working...