Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
apache:building-php-with-mysql-on-centos-5-64bit [2011-05-13 16:51:37]
garrett.plasky Approved
apache:building-php-with-mysql-on-centos-5-64bit [2011-05-13 16:52:00] (current)
garrett.plasky Approved
Line 3: Line 3:
 If you try to build PHP 5.x.x on a 64bit CentOS install you may get this error: If you try to build PHP 5.x.x on a 64bit CentOS install you may get this error:
  
-<​sxh ​bash>​checking for specified location of the MySQL UNIX socket... no+<​sxh ​plain>​checking for specified location of the MySQL UNIX socket... no
 checking for MySQL UNIX socket location... /​var/​lib/​mysql/​mysql.sock checking for MySQL UNIX socket location... /​var/​lib/​mysql/​mysql.sock
 checking for mysql_close in -lmysqlclient... no checking for mysql_close in -lmysqlclient... no
Line 11: Line 11:
 Looking further into the config.log you will also see: Looking further into the config.log you will also see:
  
-<​sxh ​bash> +<​sxh ​plain>​configure:​60376:​ checking for mysql_error in -lmysqlclient
-configure:​60376:​ checking for mysql_error in -lmysqlclient+
 configure:​60395:​ gcc -o conftest -I/​usr/​include -g -O2  -Wl,​-rpath,/​usr/​lib/​mysql -L/​usr/​lib/​mysql -L/​usr/​lib ​ -Wl,​-rpath,/​usr/​kerberos/​lib64 -L/​usr/​kerberos/​lib64 -Wl,​-rpath,/​usr -L/usr conftest.c -lmysqlclient ​ -lz -lpng -lz -lcurl -lz -lrt -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz -lxml2 -lz -lm 1>&5 configure:​60395:​ gcc -o conftest -I/​usr/​include -g -O2  -Wl,​-rpath,/​usr/​lib/​mysql -L/​usr/​lib/​mysql -L/​usr/​lib ​ -Wl,​-rpath,/​usr/​kerberos/​lib64 -L/​usr/​kerberos/​lib64 -Wl,​-rpath,/​usr -L/usr conftest.c -lmysqlclient ​ -lz -lpng -lz -lcurl -lz -lrt -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz -lxml2 -lz -lm 1>&5
 /​usr/​bin/​ld:​ skipping incompatible /​usr/​lib/​mysql/​libmysqlclient.so when searching for -lmysqlclient /​usr/​bin/​ld:​ skipping incompatible /​usr/​lib/​mysql/​libmysqlclient.so when searching for -lmysqlclient