【问题标题】:PHP Startup: zmq: Unable to initialize modulePHP 启动:zmq:无法初始化模块
【发布时间】:2015-08-11 21:47:29
【问题描述】:

我正在通过 Ubuntu 中的 Bitnami Lamp Server 使用 PHP 5.5.13 ZM 扩展未加载。 在错误日志中我收到了这条消息:

PHP Warning: PHP Startup: zmq: Unable to initialize module\nModule compiled with module API=20090626\nPHP compiled with module API=20121212\nThese options need to match\n in Unknown on line 0

【问题讨论】:

    标签: php ubuntu zeromq


    【解决方案1】:

    PHP 5.5 在 Windows 下使用更新的编译器版本。您必须使用 VC11 模块而不是 VC 9 模块。

    在 Linux 下也是如此。它是一个新的编译器版本。如果模块在 repo 中,则通过 PECL 安装模块,或者通过包管理器安装它。要编译模块,您可以使用phpize。然后用正确的编译器版本编译它,你就可以使用它了。

    http://pecl.php.net/package/zmq

    http://www.mkfoster.com/2009/01/04/how-to-install-a-php-pecl-extensionmodule-on-ubuntu/

    【讨论】:

    • 我在 Ubuntu Linux 上,我在我的问题中提到过
    猜你喜欢
    • 1970-01-01
    • 2014-11-17
    • 2012-11-11
    • 1970-01-01
    • 1970-01-01
    • 2015-08-15
    • 2012-08-22
    • 2018-08-24
    • 2012-11-28
    相关资源
    最近更新 更多