I try to install the XML_RPC2 package from the PEAR library, but whenever I type the correct command (pear install XML_RPC2), I get an error message:
pear/XML_RPC2 requires PHP extension "curl" No valid packages found install faild
Oddly enough, the team
$ pear package-dependencies xml_rpc2
returns information "this package has no dependencies" (works fine in any other case).
I also tried using older versions of XML_RPC2 - same thing. This is the first package I have a problem with. I am sure the curl is on and it works (checked). In addition, I installed all the other components listed in the dependency list (PHP 5.3, PEAR 1.9.2, Cache_Lite 1.7.9). I am working on a standard WAMP installation on Windows XP.
I would be grateful for any help :)
Change
Final Solution: WAMP has two php.ini locations, one of which is used by php scripts and one for console commands. The first is in the apache directory (i.e. wamp / bin / apache / apache2.2.21), and the second is in the php directory (e.g. wamp / bin / php / php5.3). If you use modules using the options in the icon in the WAMP Tray (PHP extensions or php.ini), you edit the php.ini file in the apache directory so that it takes effect only on the script launched by the browser, and not on the command line.
source share