Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.6

Bug #3999 installation failed - gd dependency
Submitted: 2005-03-30 08:40 UTC
From: c dot menssen at web dot de Assigned:
Status: Wont fix Package: Image_Color
PHP Version: 4.3.10 OS: Linux pc-server 2.6.8-1-686 #1 T
Roadmaps: (Not assigned)    
Subscription  


 [2005-03-30 08:40 UTC] c dot menssen at web dot de
Description: ------------ Hello! I can't install this extension! 'gd' PHP extension is not installed Image_Color: Dependencies failed But i've installed gd (it is visible in phpinfo; ext_dir is set to the correct path) Regards, Chris Reproduce code: --------------- pear install image_color Expected result: ---------------- All Done! Actual result: -------------- 'gd' PHP extension is not installed Image_Color: Dependencies failed

Comments

 [2005-03-31 20:52 UTC] jasonlotito
Not a Image_Color issue. This is an issue with the installer. However, I don't see how to make this an installer bug.
 [2005-04-12 08:50 UTC] kip at friendchip dot com
This happens (on Windows at least) because the CLI version of PHP user by PEAR does not load extensions from the php.ini file. The CLI version of PHP must be told to use the .ini file. You can add this option to pear.bat as follows: 1. Open pear.bat in a text editor. 2. Find the line beginning "%PHP_PEAR_PHP_BIN%"; 3. Immediately after it add the option "-c \[your_php_directory]\", so the line reads "%PHP_PEAR_PHP_BIN%" -c \[your_php_directory]\, with all the other options following.
 [2005-11-30 00:20 UTC] mpapet at sci-s dot com
I can confirm the same problem with pear on debian sarge. pear doesn't see gd which is installed. It's confirmed in the php test page for the server. How would I include the proper path? In my case that's /usr/lib/php4/20020429 Pear's config also points to that directory as ext_dir
 [2005-11-30 02:35 UTC] drewish at php dot net
"pear doesn't see gd which is installed. It's confirmed in the php test page for the server." I'm not clear what this means. If you don't see it in the phpinfo() list or when you run "php -m" then it's not installed. You'll need to edit the php.ini (or distro appropriate config file) to enable it.
 [2006-02-22 17:44 UTC] caugustson at promatekrc dot com (Chris Augustson)
encountered the same dependency issue when installing Image_Color when using Debian Sarge and the problem lies with the PHP.INI file and the PEAR install process. The PEAR install process uses the CLI (command line interface[?]) to install packages. The problem I found with Debian Sarge is that there are 2 PHP.INI files. One is located in /etc/php4/apache2 Second is located in /etc/php4/cli After I compared the two .ini files, the PHP.INI file in the /etc/php4/cli folder did not have the GD variables defined but the the one in the /etc/php4/apache2 DID. This is why a PHPINFO page would list GD as being installed but PEAR failing its install. Here's how I fixed it: Rename the PHP.INI file in /etc/php4/cli to PHP.INI.OLD (or whatever) Create a symlink to the PHP.INI file in /etc/php4/apache2 by issuing the command ln -s /etc/php4/apache2/php.ini Install your PEAR files like Image_Color etc. When everything works fine, remove the symlink and restore the CLI version of php.ini This solved the problem for me, hope it helps
 [2007-01-03 22:34 UTC] ignacio dot osio at bayerbms dot com (nachin)
I have the same problem installing Image_Color on windows XP I type: C:\Program_Files\wamp\php>pear install Image_Color-1.0.2.tgz and I get pear/Image_Color requires PHP extension "gd" No valid packges found install failed I have php 5.1.6 and phpinfo()tells me I have gd enabled. Please help!