Linux PHP安裝碰見的問題及解決方案

遇到的問題與解決方案 
問題一:php

報如下錯誤
./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
安裝成功
問題二:node

報如下錯誤
安裝apxs如下錯誤發生:
Package cyrus-sasl-plain needs cyrus-sasl-lib = 2.1.22-4, thisis not available. 
解決方法:
# yum -y install cyrus* 
以後再次安裝apxs 
問題三:apache

報如下錯
再次
./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
ide

[root@node1 ~]#  ./configure --prefix=/usr/local/php--with-apxs2=/usr/local/apache2/bin/apxs工具

# make && make installui

【問題5。。。。。。。。。。。。。。。。。。。。。】this

configure: error: mcrypt.h not found.Please reinstall libmcrypt.atom

解決方法:spa

解決辦法一
1
、安裝第三方yum
wgethttp://www.atomicorp.com/installers/atomic
sh ./atomic
2
、使用yum命令安裝
yum  install  php-mcrypt libmcrypt  libmcrypt-devel 
xml

相關文章
相關標籤/搜索