-3

我有这个问题。每次我尝试使用频道安装某些东西时,我都会收到此错误:

Discovering channel pear.phing.info over http:// failed with message: channel-add: adding Channel "pear.phing.info" to registry failed 
Trying to discover channel pear.phing.info over https:// instead 
Discovery of channel "pear.phing.info" failed (channel-add: Cannot open "https://pear.phing.info/channel.xml" (Connection to `pear.phing.info:443' failed: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)) 

我没有任何代理,openssl 正在使用 windows 和 wamp 服务器

有任何想法吗???

谢谢

4

4 回答 4

4

似乎它使用 PHP 来建立连接。您需要确保在您的 php.ini 文件中启用了 openssl。

取消注释行:extension=php_openssl.dll in php.ini

或者

对于 mac 用户,您将需要使用 macports: sudo port install php5-openssl

于 2011-07-19T21:30:11.610 回答
0

我有同样的问题。无代理,启用 OpenSSL。我最终以“新方式”安装它:只需下载PHAR 包,它还包含所有依赖项。通过运行它php phpunit.phar

于 2013-03-12T13:02:54.770 回答
0

我在尝试安装 phpunit 时遇到了同样的错误在我的php.ini文件
中,我通过删除“;”取消了下面的行的注释。
;extension=php_openssl.dll
保存的更改。然后我在cmd中运行:

pear channel-discover pear.phpunit.de
pear upgrade-all
pear update-channels

同样的问题。

所以我已经从这个链接下载了 phpunit.phar ,然后我在cmd中运行

php phpunit.phar

现在它正在工作:)

于 2015-07-29T07:26:54.317 回答
-1

设置代理,一切都应该工作:

pear config-set http_proxy http://login:pwd@server:port
于 2011-05-03T15:36:49.140 回答