解决方法:apxs在/usr/sbin/目录里面,修改正确路径就没有问题了
./configure \
--prefix=/usr/local/php \
--with-apxs2=/usr/local/apache2/bin/apxs \ # 修改为“/usr/sbin/apxs"即可
--with-config-file-path=/usr/local/php/etc \
--with-mysql=/usr/local/mysql \
--with-libxml-dir \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--with-iconv-dir \
--with-zlib-dir \
--with-bz2 \
--with-openssl \
--with-mcrypt \
--enable-soap \
--enable-gd-native-ttf \
--enable-mbstring \
--enable-sockets \
--enable-exif \
--disable-ipv6
原帖链接:http://blog.sina.com.cn/s/blog_b5dfe4870102waso.html
可能接着出现如下报错:mcrypt.h not found. Please reinstall libmcrypt.
解决方法详见:http://blog.sina.com.cn/s/blog_b5dfe4870102wasu.html
编辑回复