php安装,解压过后编译时出现如下,
ConfiguringSAPImodulescheckingforAOLserversupport...nocheckingforApache1.xmodulesuppo...
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... configure: error: You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2
./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/lib --enable-track-vars --with-xml --with-mysql
我有打开mysql,也换了其他编译方法,还是出现上面的提示,怎么解决?
我也试过把apxs改成apxs2 还是出现上面状况, 也试着不要后面的语言 ,,, 同样出错 展开
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... configure: error: You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2
./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/lib --enable-track-vars --with-xml --with-mysql
我有打开mysql,也换了其他编译方法,还是出现上面的提示,怎么解决?
我也试过把apxs改成apxs2 还是出现上面状况, 也试着不要后面的语言 ,,, 同样出错 展开
2个回答
展开全部
因为你的系统里面是Apache2,那么参数中的下面部分:
--with-apxs=/usr/local/apache/bin/apxs
应该修改为:
--with-apxs2=/usr/local/apache/bin/apxs
--with-apxs=/usr/local/apache/bin/apxs
应该修改为:
--with-apxs2=/usr/local/apache/bin/apxs
更多追问追答
追问
checking which regex library to use... php
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
上面那个解决了
这属于安装完成了吗? 还是还有什么错误阿?
追答
这个是错误:
configure: error: xml2-config not found. Please check your libxml2 installation.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询