Recompile php with php-odbc

Recompile php with php-odbc

Hello , I have question about recompling php and yum. I couldn’t get enough support via email from directadmin.

I’ve been trying to compile php with the configuration below,

#!/bin/sh
./configure \
–with-apxs2 \
–with-curl=/usr/local/lib \
–with-gd \
–enable-gd-native-ttf \
–with-ttf \
–with-gettext \
–with-jpeg-dir=/usr/local/lib \
–with-freetype-dir=/usr/local/lib \
–with-kerberos \
–with-openssl \
–with-mcrypt \
–with-mhash \
–with-mysql=/usr \
–with-mysqli=/usr/bin/mysql_config \
–with-pcre-regex=/usr/local \
–with-pdo-mysql=/usr \
–with-pear \
–with-png-dir=/usr/local/lib \
–with-zlib \
–with-zlib-dir=/usr/local/lib \
–enable-zip \
–with-iconv=/usr/local \
–enable-bcmath \
–enable-calendar \
–enable-ftp \
–enable-magic-quotes \
–enable-sockets \
–with-sqlite=shared \
–with-pdo-sqlite=shared \
–enable-pdo=shared \
–with-pdo-mysql=shared \
–with-pdo-odbc=unixODBC \
–with-pdo-odbc=ibm-db2 \
–enable-mbstring

And i get an error

configure: error: Cannot find header file(s) for pdo_odbc
*** There was an error while trying to configure php. Check the custom/ap2/configure.php5 file

or

error like you need to install pdo_odbc shared or statically when i added the line –enable-pdo-odbc=shared
. I compiled pure php with

–libdir=/usr/lib64 –with-pdo-odbc=unixODBC –with-pdo-odbc=ibm-db2

without any problem. But .so directadmin apache doesn’t accept these .so files. As i understand i need to compile it by itself. So the important thing is I need “pdo_odbc ibm_db2” and “pdo_odbc unixODBC” drivers. I would be appreciate if you help me about it.

The other thing is yum doesn’t find any packages , although I have added epel,remi manually. Does directadmin prevent it ?

Thank you all

Comments are closed.