I'm on a Windows 7 machine running a WAMPserver and I'm trying to install the Selenium extension for PEAR. However, whenever I try to install it, I'm told that it requires the already-enabled PHP extension "curl":
pear install phpunit/PHPUnit_Selenium
Package "pear.phpunit.de/PHPUnit_Selenium" dependency "pear.phpunit.de/PHPUnit" has no releases
phpunit/PHPUnit_Selenium requires PHP extension "curl"
No valid packages found
install failed
So I go to check my php.ini file to see if it's enabled. Sure enough, there it is:
extension=php_apc.dll
;extension=php_bz2.dll
extension=php_curl.dll
;extension=php_dba.dll
;extension=php_exif.dll
On this website, I was told to try this:
- If you are getting an error as “No valid packages found Install failed” then run the following command pear upgrade-all
But when I run that command, it just tells me Nothing to upgrade-all
.
After searching for my specific error, I found a PHP bug that mentions
The "curl" php extension needs to be loaded into php itself as an extension.
run this command
php -me
If "curl" is not listed as one of the [PHP Modules] it is not going to work.
And I'm not entirely sure how to load this "into php itself as an extension" on Windows. Is there an easy way to do this? Or to get PEAR to believe that I do have this installed?
EDIT
For the record, my curl extension is noticed by PHP (from php_info()):
cURL support enabled
cURL Information 7.20.0
php --ini | grep curl
to rule out an php.ini webserver vs. cli issue?php --ini
(nor any other extension).php --ini
tells meLoaded Configuration File: C:\wamp\bin\php\php5.3.5\php.ini
which is the php.ini file I mention above that includes the php_curl.dll extension.php -i
actually does not show the curl extension. Error_reporting is turned on. What does show the curl extension, though, is thephp_info()
function as called from the root of my web directory.