搭建LAMP出现的问题

./configure --prefix=/usr/local/src/php5 \
--with-config-file-path=/usr/local/src/php5/etc/ \
--with-apxs2=/usr/local/src/apache2/bin/apxs \
--with-mysqli=/usr/local/mysql-5.0.56/bin/mysql_config/ \  目录下是有这个文件的。。。mysql可以正常使用
--with-mysql=/usr/local/mysql-5.0.56/ \
--with-libxml-dir=/usr/local/src/libxml2/ \
--with-png-dir=/usr/local/src/libpng/ \
--with-jpeg-dir=/usr/local/src/jpeg6/ \
--with-freetype-dir=/usr/local/src/freetype/ \
--with-gd=/usr/local/src/gd2/ \
--with-zlib-dir=/usr/local/src/zlib/ \
--with-mcrypt=/usr/local/src/libcrypt2/ \
--enable-soap \
--enable-mbstring=all \
--enable-sockets  这是配置

报错:
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... no
mysql_config not found
configure: error: Please reinstall the mysql distribution




截图:几个主要源代码包。。。楼主帮我看看那边出了问题
s.jpg(13.15 KB)

2011-9-28 16:25

作者: fan798304   发布时间: 2011-09-28

http://simply.blog.51cto.com/1069052/424859
本人以前搭建的~最好把所以目录都入在一起、这样方便些、希望能够帮到你、

作者: simply   发布时间: 2011-09-29