Error setting XML_RPC2

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.

+4
source share
2 answers

"cURL" is an extension, not a package (PEAR-). See Manual for installation instructions.

+2
source

If the same problem

1) on cmd line:

 php -me 

this will show you the weather when the curl extension is enabled or not. you can check your php.ini and see if it is enabled, but only php -me will tell you if there is a problem.

2) user config-show pear this will list your pear configuration. make sure ext_dir indicates where your php extensions are:

 pear config-show 

3) make sure that all pear settings are correct, otherwise use the pear configuration to fix them (e.g. ext_dir)

 pear config-set ext_dir \your\php\ext 

If you are sure that the curl extension is enabled, simply set XML_RPC2 using the nodeps option

 pear install --nodeps XML_PPC2 

Then you should be fine.

+2
source

Source: https://habr.com/ru/post/1342550/


All Articles