2014-07-03 45 views
1

我在Ubuntu中使用Bitnami Lamp服務器使用PHP 5.5.13 ZM擴展未加載。 在次錯誤日誌中我得到這個消息:PHP啓動:zmq:無法初始化模塊

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

回答

0

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/

+0

我在Ubuntu Linux iv'e在我的問題提到它 –