2014-09-30 71 views
0

我試圖在運行Zend Server的Windows 7上安裝Phalcon模塊。Phalcon:無法初始化模塊使用編譯Windows 7 x64編譯的模塊Zend服務器

一些有用的信息:PHP -v

[30.09.2014 15:02:32 p12888/t2672 NOTICE] Successfully established connection the database 
PHP 5.5.13 (cli) (built: Jun 26 2014 12:03:16) 
Copyright (c) 1997-2014 The PHP Group 
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies 
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies 
    with Zend Extension Manager v6.0.0, Copyright (c) 2003-2014, by Zend Technogies 
    with Zend Data Cache v6.0.0, Copyright (c) 2004-2014, by Zend Technologies 
    [loaded] [licensed] [disabled] 
- with Zend Job Queue v6.0.0, Copyright (c) 2004-2014, by Zend Technologies 
[loaded] [not licensed] [disabled] 
- with Zend Session Clustering v6.0.0, Copyright (c) 2004-2014, by Zend Tecnologies [loaded][licensed] [disabled] 
- with Zend Utils v6.0.0, Copyright (c) 2004-2014, by Zend Technologies [licensed] [licensed] [enabled] 
- with Zend Code Tracing v6.0.0, Copyright (c) 2009-2014, by Zend Technologies [loaded] [licensed] [enabled] 
- with Zend Server Z-Ray v7.0.0, Copyright (c) 1999-2014, by Zend Technologies [loaded] [licensed] [enabled] 
- with Zend Monitor v6.0.0, Copyright (c) 1999-2014, by Zend Technologies [loaded] [licensed] [disabled] 
- with Zend Debugger v6.0.0, Copyright (c) 1999-2014, by Zend Technologies [loaded] [licensed] [enabled] 
- with Zend Page Cache v6.0.0, Copyright (c) 2004-2014, by Zend Technologies [loaded] [licensed] [disabled] 
- with Zend Monitor UI v6.0.0, Copyright (c) 2004-2014, by Zend Technologies [loaded] [licensed] [enabled] 

操作系統:Windows 7 X64

http://phalconphp.com/en/download/windows

我下載DLL和https://github.com/phalcon/cphalcon/tree/master

的Zend服務器安裝在程序文件x86和我已經試過安裝dll我從日誌中得到的是:

[30-Sep-2014 15:35:42] PHP Warning: PHP Startup: phalcon: Unable to initialize module 
Module compiled with build ID=API20121212,NTS,VC11 
PHP compiled with build ID=API20121212,NTS,VC9 
These options need to match 
in Unknown on line 0 
[30-Sep-2014 15:35:44] PHP Warning: PHP Startup: phalcon: Unable to initialize module 
Module compiled with build ID=API20121212,NTS,VC11 
PHP compiled with build ID=API20121212,NTS,VC9 
These options need to match 
in Unknown on line 0 
[30-Sep-2014 15:35:46] PHP Warning: PHP Startup: phalcon: Unable to initialize module 
Module compiled with build ID=API20121212,NTS,VC11 
PHP compiled with build ID=API20121212,NTS,VC9 
These options need to match in Unknown on line 0 
[30-Sep-2014 15:37:08] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\Zend\ZendServer\lib\phpext\php_phalcon.dll' - The specified module could not be found. 
in Unknown on line 0 
[30-Sep-2014 15:37:10] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\Zend\ZendServer\lib\phpext\php_phalcon.dll' - The specified module could not be found. 
in Unknown on line 0 
    [30-Sep-2014 15:38:28] PHP Warning: PHP Startup: phalcon: Unable to initialize module 
Module compiled with build ID=API20121212,NTS,VC11 
PHP compiled with build ID=API20121212,NTS,VC9 
These options need to match in Unknown on line 0 
[30-Sep-2014 15:38:30] PHP Warning: PHP Startup: phalcon: Unable to initialize module 
Module compiled with build ID=API20121212,NTS,VC11 
PHP compiled with build ID=API20121212,NTS,VC9 
These options need to match 
in Unknown on line 0 
[30-Sep-2014 15:38:32] PHP Warning: PHP Startup: phalcon: Unable to initialize module 
Module compiled with build ID=API20121212,NTS,VC11 
PHP compiled with build ID=API20121212,NTS,VC9 
These options need to match 
in Unknown on line 0 

我得到這些錯誤爲不同的DLL,我試圖安裝爲PHP模塊。你有什麼線索如何在Windows上安裝它?

我已經安裝了例如MONGO一些模塊和它的工作,但我和爾康

回答

3

當您使用的Windows預編譯的PHP擴展您必須在API數字匹配(PHP版)掙扎,開啓或關閉(ZTS或NTS),並用於在Visual Studio版本線程安全編譯

PHP與構建標識編譯= API20121212,NTS,VC9

這個信息告訴你了Zend服務器版本您正在使用的PHP是使用VC9編譯的,具有線程安全關閉(NTS),並且需要20121212版本的PHP'內部的API

模塊與構建ID = API20121212,NTS編譯,VC11

這個信息告訴你,你下載的爾康擴展編譯與VC11 - 但API和線程安全的設置是一樣的電流PHP安裝。因爲三件事中的一件不匹配,但是,擴展名將無法正確加載。

不幸的是惠爾康沒有爲PHP 5.5,NTS,與VC9建所以你要麼需要建立自己的或要求維護人員補充,版本

或者使用的東西提供了擴展的預編譯的版本除了你的PHP的Zend服務器以外的其他服務器

+0

感謝伊麗莎白你的回答,我已經知道了它的存在,而且在我的php,zend和windows版本上安裝它非常麻煩。 – Robert 2014-11-12 11:42:54