2010-08-04 48 views
-5

即時通訊存在此問題。每次我嘗試安裝使用的東西渠道我得到這個錯誤:在PEAR中發現頻道的問題

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?)) 

我不是beyind任何代理,OpenSSL是對 使用Windows和WAMP服務器

任何想法?

感謝

+0

感謝所有的答覆。但如果發現問題。 – 2010-08-05 21:32:55

+2

問題是什麼? – cweiske 2010-10-04 11:47:15

+0

sry can not remember ... – 2010-10-25 16:10:42

回答

0

設置代理,一切都應該工作:

pear config-set http_proxy http://login:[email protected]:port 
+4

問題說他不在代理人後面,但這是公認的答案。去搞清楚。 – stefgosselin 2012-12-13 20:14:39

+0

我不明白當問題表明他不在代理後面時,這是如何被接受的答案... – Ravish 2016-02-05 16:37:05

3

好像它的使用PHP進行連接。您需要確保在您的php.ini文件中啓用了openssl。

取消對該行:在php.ini中擴展= p​​hp_openssl.dll

OR

對於Mac用戶,您將需要使用的MacPorts: sudo的港口安裝PHP5,OpenSSL的

0

我有同樣的問題。沒有代理,啓用OpenSSL。我最終以「新方式」安裝它:只需下載the PHAR package,其中也包含所有依賴關係。通過php phpunit.phar運行它。

0

我得嘗試安裝PHPUnit 在我的php.ini文件
我除去已經取消註釋行波紋管時相同的錯誤「;」
;擴展名= php_openssl.dll
保存的更改。然後我在已經運行CMD

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

同樣的問題。

所以我從這個link下載phpunit.phar,然後我在下運行cmd

php phpunit.phar

現在,它的工作:)