使用composer / missing socket transport“ssl”安装ZFTool

时间:2013-06-17 13:17:21

标签: php zend-framework

我想开始学习Zend,但无法让作曲家安装zftool。尝试使用composer来安装zftool,如at ZF

所述
 ./composer.phar require zendframework/zftool:dev-master

我收到以下错误消息:

composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing zendframework/zend-math (2.2.1)
    Downloading: 100%         
    Downloading: 100%         
    Downloading: 100%         

    [Composer\Downloader\TransportException]                                                                              
  The "http://nodeload.github.com/zendframework/Component_ZendMath/zip/release-2.2.1" file could not be downloaded: failed to open stream: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?                                                                                        
    require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [packages1] ... [packagesN]

我必须管理员,我通常不会乱用我的php.ini,但据我所知,我必须在其中启用ssl-extension。 打开MAMP的5.4.10 php.ini,没有什么可以取消注释,以启用扩展。只需添加行

extension=php_openssl.so

无济于事。谁知道该怎么办?

1 个答案:

答案 0 :(得分:2)

好的,很抱歉打扰你,我终于找到了something with google。显然这太容易了。事实上,您需要做的就是

sudo port install php5-openssl

非常感谢。