PHP编译安装报错Sorry, I cannot run apxs. 解决

回复 收藏

解决方法: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
2016-04-25 12:46 举报
已邀请:

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: