Linux PHP安装遇见的问题及解决方案
2017-05-18 14:07
387 查看
遇到的问题与解决方案
问题一:报以下错误
./configure以下错误发生
Sorry, I cannot run apxs. Possiblereasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using--with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page isdisplayed)
解决方法:指定正确的apxs路径
1.查找apxs路径
# whereis apxs
apxs:
说明系统没有安装apxs扩展工具
2.安装apxs
# yum install httpd-devel
3.查找apxs路径
# whereis apxs
apxs: /usr/sbin/apxs /usr/share/man/man8/apxs.8.gz
apxs安装成功
问题二:报以下错误
安装apxs以下错误发生:
Package cyrus-sasl-plain needs cyrus-sasl-lib = 2.1.22-4, thisis not available.
解决方法:
# yum -y install cyrus*
之后再次安装apxs
问题三:报以下错
再次./configure以下错误发生
configure: error: xml2-config not found. Please check your libxml2installation.
解决方法:
安装libxml2
# yum install libxml2-devel
【问题四:=====================================================】
hecking libxml2 install dir... no
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed. Pleasecheck the config.log fordetails.
解决方法:
# yum erase zlib-devel
# yum install zlib-devel
# yum install libxml2-devel[root@node1 ~]# ./configure --prefix=/usr/local/php--with-apxs2=/usr/local/apache2/bin/apxs# make && make install【问题5。。。。。。。。。。。。。。。。。。。。。】
configure: error: mcrypt.h not found.Please reinstall libmcrypt.
解决方法:
解决办法一
1、安装第三方yum源
wgethttp://www.atomicorp.com/installers/atomic
sh ./atomic
2、使用yum命令安装
yum install php-mcrypt libmcrypt libmcrypt-devel
问题一:报以下错误
./configure以下错误发生
Sorry, I cannot run apxs. Possiblereasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using--with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page isdisplayed)
解决方法:指定正确的apxs路径
1.查找apxs路径
# whereis apxs
apxs:
说明系统没有安装apxs扩展工具
2.安装apxs
# yum install httpd-devel
3.查找apxs路径
# whereis apxs
apxs: /usr/sbin/apxs /usr/share/man/man8/apxs.8.gz
apxs安装成功
问题二:报以下错误
安装apxs以下错误发生:
Package cyrus-sasl-plain needs cyrus-sasl-lib = 2.1.22-4, thisis not available.
解决方法:
# yum -y install cyrus*
之后再次安装apxs
问题三:报以下错
再次./configure以下错误发生
configure: error: xml2-config not found. Please check your libxml2installation.
解决方法:
安装libxml2
# yum install libxml2-devel
【问题四:=====================================================】
hecking libxml2 install dir... no
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed. Pleasecheck the config.log fordetails.
解决方法:
# yum erase zlib-devel
# yum install zlib-devel
# yum install libxml2-devel[root@node1 ~]# ./configure --prefix=/usr/local/php--with-apxs2=/usr/local/apache2/bin/apxs# make && make install【问题5。。。。。。。。。。。。。。。。。。。。。】
configure: error: mcrypt.h not found.Please reinstall libmcrypt.
解决方法:
解决办法一
1、安装第三方yum源
wgethttp://www.atomicorp.com/installers/atomic
sh ./atomic
2、使用yum命令安装
yum install php-mcrypt libmcrypt libmcrypt-devel
相关文章推荐
- linux+nginx+mysql+php安装 以及常见问题得解决方案
- Linux下编译PHP时遇到的安装libmcrypt库的问题
- Linux全英文安装后中文乱码问题解决方案
- 嵌入式 Linux下如何安装rpm包以及相关问题的解决方案
- Linux下安装PHP经常出现的问题
- php Yii 框架安装到linux无法启动问题
- linux下apache+php安装常见问题
- Linux上安装PHP的问题
- linux ubutun12.04在win7上的安装出现“等待下载amd64.tar.xz”问题的解决方案
- linux下给php安装pdo_mysql和zlib以及测试模式的选择(禅道安装过程中遇到的问题)
- PHP web服务器终极解决方案:CentOS v6.x Minimal 32bit + LNAMP 一键安装包【Linux+Nginx+Apache+MySQL+PHP+phpMyAdmin】
- 安装WPS for Linux Alpha 6后Ubuntu字体渲染出现问题的解决方案
- U盘安装Linux系统Centos5.x中遇到的问题及解决方案
- Linux 安装编译PHP出现的问题及解决方法
- xp mysql4.0.1 php5 IE移植到linux mysql5.3 php5.3.10 遇见的问题
- 首发:Linux+Apache+PHP+MySQL+Zend Optimizer+PHPMyAdmin安装及常见问题
- PHP安装问题:编译安装php5.2.0时出错解决方案
- 64位Linux下安装Matlab常见问题的解决方案
- “无法挂载你的安装光盘”解决方案(LINUX安装问题)
- Redhat Enterprise Linux Advanced Server 4上安装MYSQL+APACHE+PHP+ZEND问题