Page 1 of 1

PHP 5.1.2 => 5.2.3 = Module Version Error

Posted: 2007-08-30 09:56
by nasdero
Hallo Leute,

ich hab früher auf meinem alten Server schon mal PHP compiliert, auf meinem neuen wollte ich das grade auch machen.
./configure --prefix=/usr --datadir=/usr/share/php5 --mandir=/usr/share/man --bindir=/usr/bin --with-libdir=lib64 --includedir=/usr/include --sysconfdir=/etc/php5/apache2 --with-config-file-path=/etc/php5/apache2 --with-config-file-scan-dir=/etc/php5/conf.d --with-exec-dir=/usr/lib64/php5/bin --enable-magic-quotes --enable-libxml --enable-session --with-mm --with-pcre-regex --enable-xml --enable-simplexml --enable-spl --enable-safe-mode --disable-debug --enable-memory-limit --enable-inline-optimization --enable-zend-multibyte --disable-rpath --with-apxs2=/usr/sbin/apxs2 --disable-all --disable-cli
das ist das Command, dass wohl früher benutzt wurde (phpinfo()), bringt aber folgenden Fehler:
make test

Build complete.
Don't forget to run 'make test'.

ERROR: Cannot run tests without CLI sapi.
wenn ich "--disable-cli" weg lasse, dann geht es, aber "php -v" bringt:
php -v
PHP Warning: PHP Startup: ctype: 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: curl: 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: ftp: 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: gettext: 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: iconv: 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: 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: mcrypt: 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: openssl: 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: soap: 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: 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: Unable to load dynamic library '/usr/lib64/php5/extensions/xsl.so' - /usr/lib64/php5/extensions/xsl.so: undefined symbol: dom_node_class_entry in Unknown on line 0
PHP Warning: PHP Startup: zlib: 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
Segmentation fault
Ich hab schon gesucht nach den neuen Versionen, aber ich finde die nicht, ich hoffe, ihr könnt mir helfen.
libtool --finish /usr/local/src/php-5.2.3/libs
^hab ich auch gemacht.
Linux 2.6.16.27-0.9 x86_64 Suse 10.1
Gruß,
Nasdero

Re: PHP 5.1.2 => 5.2.3 = Module Version Error

Posted: 2007-08-30 15:47
by Roger Wilco
Wirf die alten Erweiterungen aus dem extensions-Verzeichnis und entferne die betreffenden Einträge aus deiner php.ini.

Hat es eigentlich irgendeinen Grund, dass du PHP selbst kompilieren willst?

Re: PHP 5.1.2 => 5.2.3 = Module Version Error

Posted: 2007-08-30 15:59
by Joe User
Da Dein ./configure keine Optionen zum Bauen der zu verwendenden Module enthält und die Module von 5.1.x nicht mit 5.2.x kompatibel sind, wirft PHP die Errors zu recht. Deinstalliere zuerst die alte PHP-Version und deren Module vollständig und kompiliere dann die neue Version inklusive der gewünschten Module.

Re: PHP 5.1.2 => 5.2.3 = Module Version Error

Posted: 2007-08-30 17:56
by nasdero
@Roger Wilco: Ich hab mit mind. zwei Codes ärger, unter 5.2.3 laufen sie bei einem Freund, gibt es einen anderen Weg auf die neuste Version zu kommen als selber zu kompilieren?

@Joe User: Wenn ich die alte Version runter haue, muss ich dann noch mehr im ./configure angeben wie ich oben schon angegeben habe? Dachte die Module werden installiert wenn ich z.B. --with-mm angebe.

Danke für die Hilfe,
Nasdero

Re: PHP 5.1.2 => 5.2.3 = Module Version Error

Posted: 2007-09-02 19:26
by nasenmann
Wenn es für deine Distribution fertige Pakete gibt, ist dieser Weg auf jeden Fall einfacher, vor allem beim einspielen von Updates... Für viele Distributionen gibt es entsprechende Pakete, zumindest von Drittanbietern.

Re: PHP 5.1.2 => 5.2.3 = Module Version Error

Posted: 2007-09-02 19:40
by nasdero
Jo danke für die Info, ich hatte noch 5.1.6 versucht, in der Shell hat er mit auch 5.1.6 angezeigt, nur Apache sagte immer noch 5.1.2, ich hab dann 5.1.2 compiliert und installiert, auf einmal gehen die beiden Scripte auch mit denen ich vorher ärger hatte.