PHP启动:无法初始化模块


PHP Startup: zmq: Unable to initialize module

我在Ubuntu中通过Bitnami Lamp Server运行PHP 5.5.13ZM扩展未加载。在错误日志中,我得到了这样的消息:

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 5.5在Windows下使用较新的编译器版本。你必须使用VC11模块,而不是vc9模块。

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

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

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