【发布时间】:2014-02-05 17:00:32
【问题描述】:
我想使用安装pecl event
pecl install event
到目前为止,http://www.lullabot.com/blog/article/installing-php-pear-and-pecl-extensions-mamp-mac-os-x-107-lion,我一直在关注这一点,但成功有限。
我收到以下错误
配置:错误:请重新安装事件库,或提供 通过 --with-event-libevent-dir 选项安装前缀
错误: `/private/tmp/pear/temp/event/configure --enable-event-debug=no --enable-event-sockets=yes --with-event-libevent-dir=/usr --with-event-pthreads=no --with-event-extra --with-event-openssl --with-openssl- dir=no' 失败
这看起来需要pecl libevent
所以我现在已经跑了
pecl install libevent-beta
这会导致以下错误
配置:错误:找不到 libevent 标头错误:
`/private/tmp/pear/temp/libevent/configure --with-libevent' 失败
我知道它“可以”工作,因为 pecl install uploadprogress 成功了。
如何安装pecl event?
可能值得说明我的最终目标是让 Socket.IO 工作 (https://github.com/RickySu/phpsocket.io)
【问题讨论】:
标签: php macos socket.io pecl libevent