Linux PHP安装遇见的问题及解决方案

发布时间:2020-06-17 06:10:44 作者:zhangguangyi
来源:网络 阅读:1014

遇到的问题与解决方案 
问题一:

报以下错误
./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 

 


推荐阅读:
  1. linux + php 安装curl
  2. lanp(linux+apache+gd库+php)的安装

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

linux php 安装出现

上一篇:android中更新UI的几种方式

下一篇:shell中exec解析

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》