Re: PHP 5.2.3 module on Solaris 10 (AMD64)
| From: | web2 at get-telecom dot fr | Date: | Thu, 14 Jun 2007 10:17:35 +0000 |
| Subject: | Re: PHP 5.2.3 module on Solaris 10 (AMD64) | ||
| References: | 1 2 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-18071@lists.php.net to get a copy of this message | ||
I've found a solution :
Add these two lines :
LD_PRELOAD=/usr/lib/64/libmtmalloc.so.1
export LD_PRELOAD
in [APACHE_HOME]/bin/envvars
Hope it'll help.
AAcom Lists a écrit :
Salut, it seems you are compiling the whole bunch in 64bit mode (file libphp5.so) but you are linking php with a 32bit library (/usr/lib) in place of 64bit (/usr/lib/64/libmtmalloc.so.1). You must discover the place where this lib is used (a Makefile in php sources), may be an extension, and force -L/usr/lib/64 -R/usr/lib/64 before the -lmtmalloc web2@get-telecom.fr a écrit :I tried the latest version 5.2.3 on Solaris 10(AMD64) as a module on Apache 2.0.59. After the compilation, and installation, I've tried to restart Apache and I have this error message : Syntax error on line 232 of /www/apache-2.0.59/conf/httpd.conf: Cannot load /www/apache2/modules/libphp5.so into server: ld.so.1: httpd: fatal: /usr/lib/libmtmalloc.so.1: wrong ELF class: ELFCLASS32 For info, everything's ok with PHP 5.2.2. Thanks for help