PHP安裝問題:編譯安裝php5.2.0時出錯解決方案

編譯安裝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.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章