By nibor36 on
GD library Not installed
The GD library for PHP is missing or outdated. Please check the PHP image documentation for information on how to correct this.
I got this error on installation, i delete the comma at the beginning line for that library in php.ini files but this error message still.
How i can resolve this problem???
Comments
=-=
more information would be nice!
server OS ?
version of PHP ?
localmachine ?
live server ?
your server ?
did you restart apache ?
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Sorry for mistake.... OS:
Sorry for mistake....
OS: winXP SP1
PHP : 5.2.5
APACHE : 2.2
I'm work on local machine and yes i restart it.
I suggest asking on the PHP
I suggest asking on the PHP board. GD comes bundled with PHP. based on the limited information you've given it is difficult to diagnose. Ultimatley, GDLibrary isn't part of Drupal, it's part of PHP and without it Drupal won't do certain things correctly. mainly with images.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Actually I believe GD is not
Actually I believe GD is not bundled with PHP, but needs to be installed separately. I remember needing the GD library for something else a while back. I did a bunch of research on it and because I had shared hosting and no access to the server configuration, it was either too complicated or not possible for me to install the GD library. I didn't pursue it any further after that.
The GD Library is bundled in
The GD Library is bundled in with PHP and I believe that it resides in the PHP extensions directory. In your PHP.ini file (I use the recommended version for my local testing php-ini-recommended.ini copied to php.ini), you should only need to uncomment the php_gd2.dll extension on about line 637. Also, you need to make sure that you are pointing to your extensions directory (on about line 520) to where it resides on you box (e.g. "C:\php\ext").
More details about setting up a local test environment on Windows can be found at Node #264
GD *NOT* bundled for some Linux installations
I cannot speak to Windows/PHP, but for many Linux installations it is important to draw a distinction between the GD library, and the PHP-GD library. They are separate animals, and I believe there's a common error among Drupal newbies wherein the two are confused.
You may have the GD libraries installed on your system and still not have the PHP-GD installed. The simplest way to remedy this is to use your favorite package installer (yum, apt, etc.) and install PHP-GD.
Don't forget to bounce your http daemon after the installation.
Linux GD Library Not Installed
Thank you khagans, the package installer info was what I needed. All of the other comments seem to focus on compiling php and kept sending me to the php docs website showing gd functions (Not sure why I'm being sent to a functions page - I don't want to use GD, Drupal wants to use it).
In my CentOS 5 installation (php 5.x), I used the pull-down menu Applications and selected Add/Remove Software. From there I picked "Search" and typed in PHP-GD. It found two packages, the first one had a new revision, so I picked that one, installed it. Restarted Apache using "apachectl restart", and now my drupal 6.3 install reports no errors or warnings. Yeah.
--
Richard DeShong, Athletic Study Center, UCBerkeley
Linux GD Library Responses
Thanks, Richard, for posting your final solution, as this gave me what I needed to fix my similar problem. The Apache restart command is what escaped me, and in my particular case turned out to be "apache2ctl restart". That got my drupal 5.10 install working (after installing the php5-gd library).
:-) George RC, Seattle-Area IT guy