Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    3

    Default gd - graphics library installation

    I need to do some image manipulation for a site I'm developing, however I can't seem to get gd to install correctly. I've tried running the apache update through whm, but even though I click on gd to be installed it doesn't show up in phpinfo. I've also tried running /scripts/easyapache from the shell and the same thing happens. Even though I select for gd support to be enabled, when it rebuilds apache it doesn't enable it. Any ideas as to how to fix this?

  2. #2
    Member
    Join Date
    Oct 2003
    Posts
    327

    Default

    Run:

    /scripts/cleangd

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    3

    Default

    OK, I ran /scripts/cleangd and still nothing. It seems to be a problem related to PHP 5.0.4 as when ran the easyapache script using option 4, it works fine. Although when I do this, the PHP version is 4.3.11 (I need ver 5 though). Does anyone have gd support working with PHP 5.x?

  4. #4
    Member sh4ka's Avatar
    Join Date
    May 2005
    Posts
    434

    Default

    You may try:

    ##Unninstall GD libraries
    rpm -e --justdb --nodeps gd gd-devel

    ##Install again using up2date
    up2date -ui gd gd-devel

    Good luck.

  5. #5
    Registered User
    Join Date
    Aug 2005
    Posts
    3

    Default

    Quote Originally Posted by sh4ka
    You may try:

    ##Unninstall GD libraries
    rpm -e --justdb --nodeps gd gd-devel

    ##Install again using up2date
    up2date -ui gd gd-devel

    Good luck.
    I've decided to go with PHP 4.4 for now as this project is very time sensitive and I don't have all that much code using the PHP 5 features. I've reloaded PHP 4.4 and the gd library now works fine. Although the weird thing is, I still tried running the commands up above, just to see what would happen and it here is the output:
    Code:
    # rpm -e --justdb --nodeps gd gd-devel
    error: package gd is not installed
    error: package gd-devel is not installed
    As you can see, the packages aren't even installed (at least through RPM), yet it still works fine. Ideally I'd like to get gd working with PHP 5.x, but I don't have time right now to figure out how to do it. I'm thinking it has something to do with the gd library no longer being distributed with PHP 5, as it was with PHP 4. So far, I've stuck to compiling through the easyapache script to avoid doing the compiling myself as I'm still not completely comfortable with compiling directly from the source. Although I may have to become more comfortable doing this to get gd to work properly with PHP 5, along with the ability to move to the latest version of PHP (5.0.5) and gd (2.0.33), neither of which cPanel supports yet.

    Thanks for your help. Also, if anyone has PHP 5.x and gd working together properly, I'd like to hear how it was done.

Similar Threads & Tags
Similar threads

  1. GD Graphics Library
    By ozman84 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-09-2005, 07:11 AM
  2. gd graphics library?
    By codek in forum New User Questions
    Replies: 1
    Last Post: 08-19-2004, 09:01 AM
  3. How do I install GD Graphics Library?
    By mixx941 in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-22-2003, 03:59 PM
  4. GD - Graphics Library
    By IziTop in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-19-2003, 08:20 PM
  5. easyapache and GD Graphics Library
    By wimp in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 05-09-2003, 05:11 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube