首页 / 网页编程 / PHP / 编译安装php5.2.0时出错的解决方案
编译安装php5.2.0时出错的解决方案2011-01-18编译安装php5.2.0时出错解决方案1.错误信息...................如下checking for mcrypt support... nochecking for mhash support... nochecking whether to include mime_magic support... nochecking for MING support... nochecking for mSQL support... nochecking for MSSQL support via FreeTDS... nochecking for MySQL support... yeschecking for specified location of the MySQL UNIX socket... /tmp/mysql.sockchecking for MySQL UNIX socket location... /tmp/mysql.sockchecking for mysql_close in -lmysqlclient... nochecking for mysql_error in -lmysqlclient... noconfigure: error: mysql configure failed. Please check config.log for more information.2.解决方法:如果是自己选择GZ包安装的MYSQL。这里要加路径。加的方法为--with-mysql-dir=/user/local/mysql切记不可写为:--with-mysql=/user/local/mysqla、checking lex output file root... ./configure: line 2425: lex: command not foundconfigure: 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.