Apache安装出错类型的解决方法.doc_第1页
Apache安装出错类型的解决方法.doc_第2页
Apache安装出错类型的解决方法.doc_第3页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

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=/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,如果是这样,则需要将已经安装的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注意的是 在参数上一定要指定路径 -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的权限,所以提示Permission 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 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/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-cache -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报错的原因是所安装活更新的软件部分模块

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论