Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/01/2010, 18:13
bedomax_web
 
Fecha de Ingreso: enero-2009
Mensajes: 8
Antigüedad: 15 años, 3 meses
Puntos: 0
Problemas para compilar PHP con Mysql

Hola a todos

Instale Mysql mediante yum en un servidor Red Hat 5 : yum install mysql-server mysql-client mysql-devel

El problema es que necesito utilizar PHP con informix y tuve que compilarlo asi:

Código:
./configure --with-apxs=/usr/local/apache/bin/apxs --disable-debug --disable-ftp --disable-inline-optimization --disable-magic-quotes --disable-mbstring --enable-wddx=shared --enable-xml --with-regex=system --with-jpeg-dir=/usr/lib --with-zlib-dir=/usr/lib --with-zlib --without-pdo-sqlite --without-iconv --without-sqlite --with-pdo-informix=/appl/informix --with-informix=/appl/informix --with-curl=/usr/lib --enable-shared
Ningún problema para que funcione informix pero mi problema fue al añadir --with mysql

Código:
./configure --with-apxs=/usr/local/apache/bin/apxs --disable-debug --disable-ftp --disable-inline-optimization --disable-magic-quotes --disable-mbstring --enable-wddx=shared --enable-xml --with-regex=system --with-jpeg-dir=/usr/lib --with-zlib-dir=/usr/lib --with-zlib --without-pdo-sqlite --without-iconv --without-sqlite --with-pdo-informix=/appl/informix --with-informix=/appl/informix  --with-mysql --with-curl=/usr/lib --enable-shared
Me da el siguiente error:

Código:
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
Ya intente redireccionar a --with-mysql a todas la carpetas posibles donde esta mysql y nada.
Código:
# find / -name mysql
/var/lib/mysql
/var/lib/mysql/mysql
/root/src/php-5.1.2/ext/mysql
/root/Desktop/php-5.1.6/ext/mysql
/usr/include/mysql
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/DBD/mysql
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/mysql
/usr/lib64/mysql
/usr/bin/mysql
/usr/lib/mysql
/usr/share/mysql
Ya he buscado por todos lados y nada, alguién tiene alguna idea de como resolver esto???

Gracias por la ayuda.