2009-10-18 71 views
1

我剛剛更新PHP 5.2.0至5.2.11,並調用PHP :(PHP 5.2.11更新問題

我下載的源和老所使用的相同的./configure線的時候,現在我得到錯誤的負載隨後的phpinfo讓沒有安裝。

我得到的錯誤是下面的,任何人有任何想法如何理清這個爛攤子嗎?

這是RHEL 5.2

PHP Warning: PHP Startup: dbase: Unable to initialize module 
Module compiled with module API=20050922, debug=0, thread-safety=0 
PHP compiled with module API=20060613, debug=0, thread-safety=0 
These options need to match 
in Unknown on line 0 
PHP Warning: PHP Startup: dom: Unable to initialize module 
Module compiled with module API=20050922, debug=0, thread-safety=0 
PHP compiled with module API=20060613, debug=0, thread-safety=0 
These options need to match 
in Unknown on line 0 
PHP Warning: PHP Startup: gd: Unable to initialize module 
Module compiled with module API=20050922, debug=0, thread-safety=0 
PHP compiled with module API=20060613, debug=0, thread-safety=0 
These options need to match 
in Unknown on line 0 
PHP Warning: PHP Startup: imap: Unable to initialize module 
Module compiled with module API=20050922, debug=0, thread-safety=0 
PHP compiled with module API=20060613, debug=0, thread-safety=0 
These options need to match 
in Unknown on line 0 
PHP Warning: PHP Startup: ldap: Unable to initialize module 
Module compiled with module API=20050922, debug=0, thread-safety=0 
PHP compiled with module API=20060613, debug=0, thread-safety=0 
These options need to match 
in Unknown on line 0 
PHP Warning: PHP Startup: mbstring: Unable to initialize module 
Module compiled with module API=20050922, debug=0, thread-safety=0 
PHP compiled with module API=20060613, debug=0, thread-safety=0 
These options need to match 
in Unknown on line 0 
PHP Warning: PHP Startup: mysql: Unable to initialize module 
Module compiled with module API=20050922, debug=0, thread-safety=0 
PHP compiled with module API=20060613, debug=0, thread-safety=0 
These options need to match 
in Unknown on line 0 
PHP Warning: PHP Startup: mysqli: Unable to initialize module 
Module compiled with module API=20050922, debug=0, thread-safety=0 
PHP compiled with module API=20060613, debug=0, thread-safety=0 
These options need to match 
in Unknown on line 0 
PHP Warning: PHP Startup: PDO: Unable to initialize module 
Module compiled with module API=20050922, debug=0, thread-safety=0 
PHP compiled with module API=20060613, debug=0, thread-safety=0 
These options need to match 
in Unknown on line 0 
PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module 
Module compiled with module API=20050922, debug=0, thread-safety=0 
PHP compiled with module API=20060613, debug=0, thread-safety=0 
These options need to match 
in Unknown on line 0 
PHP Warning: PHP Startup: pdo_sqlite: Unable to initialize module 
Module compiled with module API=20050922, debug=0, thread-safety=0 
PHP compiled with module API=20060613, debug=0, thread-safety=0 
These options need to match 
in Unknown on line 0 
PHP Warning: PHP Startup: xmlreader: Unable to initialize module 
Module compiled with module API=20050922, debug=0, thread-safety=0 
PHP compiled with module API=20060613, debug=0, thread-safety=0 
These options need to match 
in Unknown on line 0 
PHP Warning: PHP Startup: xmlrpc: Unable to initialize module 
Module compiled with module API=20050922, debug=0, thread-safety=0 
PHP compiled with module API=20060613, debug=0, thread-safety=0 
These options need to match 
in Unknown on line 0 
PHP Warning: PHP Startup: xmlwriter: Unable to initialize module 
Module compiled with module API=20050922, debug=0, thread-safety=0 
PHP compiled with module API=20060613, debug=0, thread-safety=0 
These options need to match 
in Unknown on line 0 
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/xsl.so' - /usr/lib/php/modules/xsl.so: undefined symbol: dom_node_class_entry in Unknown on line 0 
+0

您是否跳過「./configure ...」和「make install」之間的「make」步驟? – timdev 2009-10-18 23:33:05

+0

對不起,進程是「configure」,然後是「make」,然後「make test2,然後」make install「。 – Tim 2009-10-18 23:53:08

回答

3

問題解決了 - 剛剛拋棄的INI文件加載在/etc/php.d

也許不是最好的解決辦法,我不知道如果我現在已經失去了一些功能,但我需要它做的一切工作,所以沒關係。

1

我去以保證這些模塊是通過pecl安裝的,而不是用php編譯它們。你的./configure文件中有--with-pdo,--with-pdo-mysql之類的選項嗎?如果不是,那麼在初始PHP編譯之後,所有這些東西都可以通過pecl安裝(包括編譯和PHP鏈接)。

如果您通過pecl進行升級,會發生什麼情況?

pecl upgrade <modulename> 
+0

配置中沒有--with-pdo等,所以我修改了」pecl upgrade pdo「等,但pecl說對於他們「無效或丟失的包文件」 我試着添加--with-pdo等來配置行和重新編譯,但也沒有工作。 – Tim 2009-10-19 00:22:59

+0

pecl列表 (沒有從通道pecl.php安裝軟件包。 net) – Tim 2009-10-19 00:23:56

+0

當然聽起來很奇怪,這是什麼平臺運行?你知道5.2.0是如何安裝的嗎? – timdev 2009-10-19 00:28:28