Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    4

    Default When will we get the new GD with GIF support?

    With the release of 2.0.28 of GD which has GIF support added back in, when will it be available as in install on cpanel? Or does it have to come with PHP, meaning that they have to release a new 4.x version?

  2. #2
    Member Sinewy's Avatar
    Join Date
    May 2004
    Location
    Sydney, Australia
    Posts
    370

    Default

    cPanel compiles GD using the bundled library. at the moment the bundled one is 2.0.23

    If you wish to use 2.0.28 this is what you need to do:

    cd /home/cpapachebuild/buildapache
    nano buildscript

    whenever you see "--with-gd" replace it with "--with-gd=/usr"

    now exit nano by hitting ctrl + x

    wget http://www.boutell.com/gd/http/gd-2.0.28.tar.gz
    tar zxf gd-2.0.28.tar.gz
    cd gd-2.0.28
    rm -fr config.cache
    ./configure --prefix=/usr
    make clean
    make libgd.a
    make
    cp -fv .libs/libgd.a .
    make install

    cd /home/cpapachebuild/buildapache
    ./buildscript

  3. #3
    Member
    Join Date
    Oct 2003
    Posts
    1,020

    Default

    I think I will wait, but thank you for the HOWTO

  4. #4
    Nox
    Nox is offline
    Member
    Join Date
    Jun 2003
    Posts
    5

    Default

    The procedure Sinewy outlines above doesn't seem to work on my Fedora Core 1 box. Every time I try to make gdlib.a it complains with a 'No target to make: gdlib.a' message.

    Does anyone else know any means of getting GD 2.0.28 into the CPanel Apache compile?

    The guys at CPanel should REALLY update the bundled version, 2.0.28 is a landmark release since it finally supports GIF output.

  5. #5
    Member
    Join Date
    Nov 2001
    Posts
    95

    Default

    Quote Originally Posted by Nox
    The procedure Sinewy outlines above doesn't seem to work on my Fedora Core 1 box. Every time I try to make gdlib.a it complains with a 'No target to make: gdlib.a' message.

    Does anyone else know any means of getting GD 2.0.28 into the CPanel Apache compile?

    The guys at CPanel should REALLY update the bundled version, 2.0.28 is a landmark release since it finally supports GIF output.

    I just tried it on CentOS and it didn't work, I also get an error when I run "make libgd.a"

    Pete

  6. #6
    Member
    Join Date
    Oct 2003
    Posts
    1,020

    Default

    Maybe people posting HOWTOs should start including the cPanel/OS/Kernel versions and notes about whether the process has been tested and any special (not including in the default cPanel/OS/Kernel configuration) requirements.

  7. #7
    Registered User
    Join Date
    May 2003
    Posts
    4

    Default

    Sucessful Update of GD 2.0.28 on WHM/CPanel V9.7.7 R15 - Redhat Enterprise

    Steps Involved.

    1) Placed gd-2.0.28.tar.gz in /usr/local and Expanded the archive as per the How-To Above
    2) Replaced all occurences of /usr in the How-To with /usr/local

    I followed the rest of the steps, I did receive an error on "make libgd.a" but continued anyway and it installed perfectly.

    Thanks Sinewy for the How-To

    Regards,
    Michael

  8. #8
    BANNED
    Join Date
    Feb 2002
    Posts
    656

    Default

    THanks for the info, you rule!
    Quote Originally Posted by Sinewy
    cp -fv .libs/libgd.a .
    One question, why do you need to put libgd.a on level higher?

  9. #9
    BANNED
    Join Date
    Feb 2002
    Posts
    656

    Default

    Its easiest just to run ./configure make and make install, the cpanel apache build script sucks and is too slow

    These 12 commands work perfectly:
    wget http://www.boutell.com/gd/http/gd-2.0.28.tar.gz
    tar -xzvf gd-2.0.28.tar.gz
    cd gd-2.0.28
    ./configure --prefix=/usr/local
    make
    make install
    cd /home/cpphpbuild/php-4.3.8
    './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-ftp' '--with-gd=/usr/local' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--with-ming=../ming-0.2a' '--enable-magic-quotes' '--with-mysql' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pspell' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--enable-wddx' '--with-zlib'
    make
    make install
    /etc/rc.d/init.d/httpd restart
    /etc/rc.d/init.d/httpd start

  10. #10
    BANNED
    Join Date
    Feb 2002
    Posts
    656

    Default

    Your php info file will read:
    gd
    GD Support enabled
    GD Version 2.0 or higher
    FreeType Support enabled
    FreeType Linkage with freetype
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled

    "GIF Create Support enabled" means it GD 2.0.28

  11. #11
    Member
    Join Date
    Mar 2004
    Location
    Ayr, North Queensland, Australia
    Posts
    328

    Default Script

    I'll try to code a perl script that does it tonight

Similar Threads & Tags
Similar threads

  1. How do I upload .gif files to cpanel?
    By Riff88 in forum New User Questions
    Replies: 4
    Last Post: 09-29-2009, 02:39 AM
  2. GD2 Support GIF/JPG/PNG
    By WillBlack in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-01-2006, 11:10 PM
  3. Upgrading GD For Animated Gif Support
    By dankoerner in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-20-2006, 12:20 PM
  4. cpiconb.gif MIA
    By ukhost in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 06-03-2004, 03:02 PM
  5. Gears.gif image copyright?
    By Rich Z in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 01-05-2004, 11:28 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube