PDA

View Full Version : Install PHP5 in 32-bit on x86_64 for Informix



it_james
25-Apr-2013, 21:40
I am pulling my hair out trying to get pdo-informix installed on SLES 11 SP 2. I the Informix Client SDK installed is 32-bit by requirement for our ERP application. I need to install pdo-informix, but it can only be installed in 32-bit for compatability with the Informix SDK.

I do not see a PHP5 32-bit rpm on the reposetories. I have tried to build several PHP5.x sources, trying to force 32-bit, which is supposed to be supported with CFLAGS="-m32" but it never works.

Here is an example configure for php-5.4.14 and the resulting error:

CFLAGS="-m32" CXXFLAGS="-m32" ./configure --disable-pdo --without-pdo-sqlite --with-pdo-informix=/opt/informix --with-gd --with-zlib --with-mysql --with-curl=shared --with-curl=/usr/bin --with-curl=/usr/lib --with-curl=/usr/lib64 --enable-sockets --enable-xml --enable-simplexml --enable-libxml

configure: error: build test failed. Please check the config.log for details

config.log is a nightmare to read and I can't make heads or tails of it nor where it is dying.

Any help would be VERY much appreciated.

summitflier
26-Apr-2013, 00:24
It's in the SLES-11-i586 repos. (Obviously not the x86_64 or s390x)
On a 64 bit platform you will likely need the libstdc++ 32 bit libraries also.

i | libstdc++33-32bit | The standard C++ shared library | package
| libstdc++43-32bit | The standard C++ shared library | package
| libstdc++43-devel-32bit | Include Files and Libraries mandatory fo-> | package
i | libstdc++46-32bit | The standard C++ shared library | package


i | php53 | PHP5 Core Files | package
| php53 | PHP5 Core Files | srcpackage
i | php53-bcmath | PHP5 Core Files | package
i | php53-bz2 | PHP5 Core Files | package
i | php53-calendar | PHP5 Core Files | package
i | php53-ctype | PHP5 Extension Module | package
i | php53-curl | PHP5 Extension Module | package
i | php53-dba | PHP5 Extension Module | package
i | php53-dom | PHP5 Extension Module | package
i | php53-exif | PHP5 Extension Module | package
i | php53-fastcgi | FastCGI PHP5 Module | package
i | php53-fileinfo | PHP5 Extension Module | package
i | php53-ftp | PHP5 Extension Module | package
i | php53-gd | PHP5 Extension Module | package
i | php53-gettext | PHP5 Extension Module | package
i | php53-gmp | PHP5 Extension Module | package
i | php53-iconv | PHP5 Extension Module | package
i | php53-intl | PHP5 Extension Module | package
i | php53-json | PHP5 Extension Module | package
i | php53-ldap | PHP5 Extension Module | package
i | php53-mbstring | PHP5 Extension Module | package
i | php53-mcrypt | PHP5 Extension Module | package
| php53-mysql | PHP5 Extension Module | package
i | php53-odbc | PHP5 Extension Module | package
i | php53-openssl | PHP5 Extension Module | package
i | php53-pcntl | PHP5 Extension Module | package
i | php53-pdo | PHP5 Extension Module | package
i | php53-pear | PHP Extension and Application Rep-> | package
i | php53-pgsql | PHP5 Extension Module | package
i | php53-pspell | PHP5 pspell extension | package
i | php53-shmop | PHP5 Extension Module | package
i | php53-snmp | PHP5 Extension Module | package
i | php53-soap | PHP5 Extension Module | package
i | php53-suhosin | PHP5 Extension Module | package
i | php53-sysvmsg | PHP5 Extension Module | package
i | php53-sysvsem | PHP5 Extension Module | package
i | php53-sysvshm | PHP5 Extension Module | package
i | php53-tokenizer | PHP5 Extension Module | package
i | php53-wddx | PHP5 Extension Module | package
i | php53-xmlreader | PHP5 Extension Module | package
i | php53-xmlrpc | PHP5 Extension Module | package
i | php53-xmlwriter | PHP5 Extension Module | package
i | php53-xsl | PHP5 Extension Module | package
i | php53-zip | PHP5 Extension Module | package
i | php53-zlib | PHP5 Extension Module | package
| slessp1-apache2-mod_php5 | Security update for php5 | patch
| slessp2-apache2-mod_php5 | Security update for PHP5 | patch
i | slessp2-apache2-mod_php53 | Security update for PHP5 | patch


I don't know if these are required...
| libelf0-32bit | An ELF Object File Access Library | package
| libelf1-32bit | Library to read and write ELF files | package