0

我想开始学习Zend,但无法让composer安装zftool。尝试使用 composer 安装 zftool,如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 扩展。打开MAMP的5.4.10 php.ini,没有什么可取消注释,启用扩展。只需添加行

extension=php_openssl.so

不会有帮助的。有谁知道该怎么做?

4

1 回答 1

2

好的,不好意思打扰了,我终于用 google 找到了一些东西。显然这太容易了。事实上,你需要做的就是

sudo port install php5-openssl

不管怎么说,还是要谢谢你。

于 2013-06-17T14:01:46.603 回答