編譯安裝php5.2.0時出錯解決方案
1.錯誤信息...................如下
checking for mcrypt support... no
checking for mhash support... no
checking whether to include mime_magic support... no
checking for MING support... no
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... /tmp/mysql.sock
checking for MySQL UNIX socket location... /tmp/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.
2.解決方法:
如果是自己選擇GZ包安裝的MYSQL。這裡要加路徑。
加的方法為--with-mysql-dir=/user/local/mysql
切記不可寫為:--with-mysql=/user/local/mysql
a、checking lex output file root... ./configure: line 2425: lex: command not found
configure: error: cannot find output from lex; giving up
缺少flex-2.5.4a-29.i386.rpm,從linux 9.0光盤中找到flex-2.5.4a-29.i386.rpm,安裝,重新編譯php,ok.