Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2005
    Location
    Aus
    Posts
    4

    * How to install XPM support for GD library?

    Hi,

    I'm still having trouble with the imagettftext() function though, which according to the PHP manual (http://au.php.net/imagettftext) means:

    "You need to compile PHP with more options.

    --with-gd
    --enable-gd-native-ttf
    --with-png
    --with-zlib-dir=/usr/local/lib/zlib-1.2.1
    --with-ttf
    --with-jpeg-dir=/usr/local/lib/jpeg-6b/
    --with-freetype-dir=/usr/local/lib/freetype-2.1.9/
    --with-xpm-dir=/usr/X11R6/

    The next set deal with setting up GD, and the appropriate options
    Just enabling GD, ttf, png & jpeg is NOT enough. You also need
    Freetype and XPM."

    I've enabled Freetype but XPM is not supported by CPanel. So that means I have to install it. I am doing this for my client who using GD library. (I am using VPS and my hosting does not support XPM installation as I would have to figure out how to do it myself).

    Anyone know how to install XPM support? I've tried to search it in google for about 3 hours but they did not have tutorials and Technical & Security Issues tutorials aswell.

    Thankyou

  2. #2
    Join Date
    Aug 2004
    Posts
    37

    Re: How to install XPM support for GD library?

    Hi,

    which linux distibution is installed ?

  3. #3
    Join Date
    Jul 2005
    Location
    Aus
    Posts
    4
    Fedora i686

  4. #4
    Go to root shell
    cd to /home/cpins/installd/buildapache/php-4.3.10
    or to your apache source dir. you can get that from "locate php-version".

    ./configure <all options from phpinfo.php+ --with-xpm-dir=/usr/X11R6
    make && make install

    I have my server successfully runs php with xpm support

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •