apache安装出错类型的解决方法

上传人:自*** 文档编号:79650997 上传时间:2019-02-17 格式:DOC 页数:3 大小:51.30KB
返回 下载 相关 举报
apache安装出错类型的解决方法_第1页
第1页 / 共3页
apache安装出错类型的解决方法_第2页
第2页 / 共3页
apache安装出错类型的解决方法_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

《apache安装出错类型的解决方法》由会员分享,可在线阅读,更多相关《apache安装出错类型的解决方法(3页珍藏版)》请在金锄头文库上搜索。

1、Apache安装出错类型的解决方法 前言:首先说一下这篇文章的资料吧,这是我第一次安装apache期间出现的错误,没事呢网上查查资料整理一下传上来和大家分享分享,有不足不全的地方还希望大家再百度一下。1、 configure: error: Cannot use an external APR with the bundl解决方法:安装apr和apr-util;#cd httpd-2.2.17/srclib/apr#./configure -prefix=/usr/local/apr#make & make install#cd ./apr-util#./configure -prefix=/

2、usr/local/apr-util -with-apr=/usr/local/aprmake & make install 再安装apache就可以了2、 configure failed for srclib/apr错误解决方法: 运行指令 yum install apr apr-devel 解决Error:configure failed for . srclibpache2.0.x与apache2.2.x在apr上有本质的区别,前者为依赖公用apr,后者依赖于自身的apr。一般前者也就是2.0.x的编译基本上没有apr方面的问题,除非,在编译前,安装了非2.0.x所需的apr,如果是这

3、样,则需要将已经安装的apr去除,然后再编译。如果是后者也出现关于apr的问题,则将安装前的apr去除后,在编译apache2.2.x自身的apr,在srclib目录中。 cd HTTPD(你自己的路径,以下相同)安装APRcd srclib/apr#./configure -prefix=/HTTPD/apr#make#make install安装APR-utilcd srclib/apr-util#./configure -prefix=/HTTPD/apr-util -with-apr=/HTTPD/apr#make#make install然后再configure apache注意的是

4、 在参数上一定要指定路径 -with-apr=/路径/apr -with-apr-util=/HTTPD/apr-util #make#make install三、Permission denied错误解决方法:echo /Apache2/bin/Apachetl start/etc/rc.d/rc.local注:/Apache2/bin/Apachetl 应该是启动脚本,start是参数表示启动,/etc/rc.d/rc.local 表示将输出显示添加到/etc/rc.d/rc.local这个文件。所以第一次普通用户执行时(提示符$)没有写入rc.local的权限,所以提示Permissio

5、n denied。其实rc.local 是系统启动时自动执行的脚本文件,不应该向这里添加不相关的输出内容,我估计应该是下面的指令。echo /Apache2/bin/Apachetl start/etc/rc.d/rc.local意思是在rc.local文件 中添加/Apache2/bin/Apachetl start命令,使系统启动是自动执行/Apache2/bin/Apachetl start命令启动apache。httpd: Could not reliably determine the servers fully qualified domain name, using 127.0.

6、0.1 for ServerName应该是说apache没有设置服务器名。这在配置文件中默认是封着的如果没有修改过配置都会有这个错误。四、PACHE 安装出错 configure: error: Cannot use an external APR with the bundled APR-utilconfigure: error: Cannot use an external APR with the bundled APR-util根据错误信息进行解决安装apr和apr-utilcd httpd-2.2.17/srclib/apr./configure -prefix=/usr/local

7、/aprmake & make installcd ./apr-util./configure -prefix=/usr/local/apr-util -with-apr=/usr/local/aprmake & make install 再安装apache就可以了 ./configure -prefix=/usr/local/apache -enable-so -with-apr=/usr/local/apr -with-apr-util=/usr/local/apr-util/bin -enable-mods-shared=all -with-mpm=worker -enable-cach

8、e -enable-disk-cache -enable-mem-cache -enable-file-cache五、configure: error: C+ preprocessor /lib/cpp fails sanity check 在某些软件的时候,运行./configure 会报错,错误提示为:configure: error: C+ preprocessor “/lib/cpp” fails sanitycheck See config.log for more details报错的原因是所安装活更新的软件部分模块使用了C+的东西,需要C+编译器的支持。解决办法: 出现该情况是由于c+编译器的相关package没有安装,以root用户登陆,在终端上执行下面命令即可:# yum install glibc-headers# yum install gcc-c+

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号