【问题标题】:Command 'channel-discovery' is not valid, try 'pear help'命令 'channel-discovery' 无效,尝试 'pear help'
【发布时间】:2014-02-04 17:30:55
【问题描述】:

在通过 windows 命令行安装 symfony1 时给了我这个错误

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

有什么想法吗?

【问题讨论】:

    标签: php symfony1 pear


    【解决方案1】:

    也许是这样的:

    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/

    【讨论】:

    • thanx 快速回答,我已经尝试过你所说的,但我得到另一个错误检查我的问题我已经编辑它。
    • pear.php-project.com 这个频道是什么项目?我不确定这是否存在。不过我可能是错的。
    • 我正在尝试使用 symfony 指南通过 windows 命令行安装 symfony
    猜你喜欢
    • 2020-01-18
    • 1970-01-01
    • 2017-07-15
    • 1970-01-01
    • 1970-01-01
    • 2016-02-18
    • 1970-01-01
    • 2016-07-05
    • 2022-11-17
    相关资源
    最近更新 更多