【问题标题】:MAMP, installing PECL eventMAMP,安装 PECL 事件
【发布时间】: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


    【解决方案1】:

    pecl-event 的配置尝试在 /usr/local /usr /opt /opt/local 中查找 libevent 标头。我不是 OS X 用户,但我想它应该将东西安装到 /opt/local

    这看起来需要 pecl libevent

    不!它不需要 PECL 的 libevent!您必须自行安装libevent。嗯,我猜:

    port install libevent
    

    或许

    port install libevent-dev
    

    你应该弄清楚。总之,要构建 pecl-event,您需要 libevent 的二进制文件和头文件。 这些应该由“libevent”、“libevent-dev”或类似的包提供。

    或者,您可以从源代码安装 libevent。一定要检查它是否要安装到一些“流行”的位置,如/usr/usr/local 等。通过--with-event-libevent-dirconfigure 选项一可以提供libevent 安装目录的路径。

    顺便说一句,我是 pecl-event 的维护者。欢迎随时report issues

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-07-22
      • 2013-02-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多