The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to update GD Library?

Discussion in 'General Discussion' started by cix, Jun 30, 2005.

  1. cix

    cix Well-Known Member

    Joined:
    Nov 6, 2003
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Hi, i´ve installed the GD Library (GD (Version 2.0.15))on WHM option - Update Apache.

    But how can I update this version of GD to the last?
     
  2. Sinewy

    Sinewy Well-Known Member

    Joined:
    May 15, 2004
    Messages:
    367
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney, Australia
    cPanel Access Level:
    DataCenter Provider
    Using root SSH:


    cd /home
    mkdir gd-build
    cd gd-build
    wget http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
    tar zxf gd-2.0.33.tar.gz
    cd gd-2.0.33
    ./configure --prefix=/usr
    make
    make install


    Then you need to:


    cd /home/cpapachebuild/buildapache
    pico buildscript


    Ctrl + w to search, you want to search for --with-gd

    Each time --with-gd comes up, replace this with --with-gd=/usr

    Once you've replaced them all (there's about 3 or 4), ctrl + x to save and exit.

    Now do:


    chmod 750 buildscript
    ./buildscript


    This will recompile Apache/PHP with your changed GD.

    Regards,
    Alan
     
  3. Johnpg82

    Johnpg82 Member

    Joined:
    Jul 3, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I tried this and it didn't work.
     
Loading...

Share This Page