命令'频道发现'无效,请尝试'梨帮助'

时间:2014-02-04 09:14:50

标签: php symfony1 pear

通过Windows命令行安装symfony 1给我这个错误

c:\wamp\bin\php\php5.4.16>pear channel-discovery pear.php-project.com
 Command 'channel-discovery' is not valid, try 'pear help'

如果我使用

pear channel-discover pear.php-project.com
然后它给了我

Discovering channel pear.php-project.com over http:// failed with message: chann
el-add: Cannot open "http://pear.php-project.com/channel.xml" (Connection to `pe
 ar.php-project.com:80' failed: php_network_getaddresses: getaddrinfo failed: No
 such host is known. )
Trying to discover channel pear.php-project.com over https:// instead
Discovery of channel "pear.php-project.com" failed (channel-add: Cannot open "ht
tps://pear.php-project.com/channel.xml" (Connection to `pear.php-project.com:443
' failed: Unable to find the socket transport "ssl" - did you forget to enable i
t when you configured PHP?))
then it give me this error

任何想法?

1 个答案:

答案 0 :(得分:0)

也许这个:

pear channel-discover pear.php-project.com

看起来应该是channel-discover而不是channel-discovery

我是从这个网址得到的:

http://pear.php.net/manual/en/guide.users.commandline.channels.php

如果要注册symfony频道,则需要使用以下命令:

pear channel-discover pear.symfony-project.com

此链接提供了其余说明:http://pear.symfony-project.com/