Apache 编 译 时 遇 到 的 错 误

文章来自:http://xtony.blog.51cto.com/3964396/836508/

APR(Apache portable Run-time libraries,Apache可移植运行库)的目的如其名称一样,

主要为上层的应用程序提供一个可以跨越多操作系统平台使用的底层支持接口库;

对于应用程序httpd而言,它们根本就不需要考虑具体的平台,不管是Unix、Linux还是Window,应用程序执行的接口基本都是统一一致的.此时就需要APR来作为一个转接口连接

他与底层平台。

========================================================================================

错误:

#./configure --prefix……检查编辑环境时出现:

checking for APR... no

configure: error: APR not found .  Please read the documentation

解决办法:

1.下载所需软件包:

wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz  
wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz  
wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip

2.编译安装:这一步我倒是没做

yum remove apr-util-devel apr apr-util-mysql apr-docs apr-devel apr-util apr-util-docs

具体步骤如下:

a:解决apr not found问题>>>>>>

[[email protected] test]# tar -zxf apr-1.4.5.tar.gz  
[[email protected] test]# cd  apr-1.4.5  
[[email protected] apr-1.4.5]# ./configure --prefix=/usr/local/apr  
[[email protected] apr-1.4.5]# make && make install

b:解决APR-util not found问题>>>>

[[email protected] test]# tar -zxf apr-util-1.3.12.tar.gz  
[[email protected] test]# cd apr-util-1.3.12  
[[email protected] apr-util-1.3.12]# ./configure --prefix=/usr/local/apr-util -with- apr=/usr/local/apr/bin/apr-1-config  
[[email protected] apr-util-1.3.12]# make && make install

c:解决pcre问题>>>>>>>>>

[[email protected] test]#unzip -o pcre-8.10.zip  
[[email protected] test]#cd pcre-8.10  
[[email protected] pcre-8.10]#./configure --prefix=/usr/local/pcre  
[[email protected] pcre-8.10]#make && make install


4.最后编译Apache时加上:

--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/  --with-pcre=/usr/local/pcre

成功编译完成~

时间: 2024-08-08 13:57:15

Apache 编 译 时 遇 到 的 错 误的相关文章

第 十 七 天 : 安 装 php 遇 到 的 错 误 汇 总

hecking for BZip2 support- yes checking for BZip2 in default path- not found configure: error: Please reinstall the BZip2 distribution Fix: yum install bzip2-devel checking for cURL support- yes checking if we should use cURL for url streams- no chec

ANE-如何加入ane,调试时又不报错

有时候我们加入ane,即使没有调用ane的功能,debug的时候也会报错无法调试,这是为什么呢?因为我们的ane没有把default包含进去. 首先我们的extension.xml要把default节点包含进去 <extension xmlns="http://ns.adobe.com/air/extension/3.1"> <id>net.digitalprimates.volume</id> <versionNumber>0.0.1&

【翻译自mos文章】OGG add Supplemental Logging 时失败,报错为 块损坏(Block Corruption)

OGG add Supplemental Logging 时失败,报错为 块损坏(Block Corruption) 来源于: Add Supplemental Logging Fails Due To Block Corruption (文档 ID 1468322.1) 适用于: Oracle Server - Enterprise Edition - Version 10.2.0.5 to 12cBETA1 [Release 10.2 to 12.1] Information in this

如何查看apache服务器启动时加载了哪些模块

查看apache服务器编译时所加载的模块 [[email protected] bin]# ./apachectl -lCompiled in modules:  core.c  mod_authn_file.c  mod_authn_default.c  mod_authz_host.c  mod_authz_groupfile.c  mod_authz_user.c  mod_authz_default.c  mod_auth_basic.c  mod_filter.c  mod_versi

Navicat导入数据时发生了报错 --- 1153 - Got a packet bigger than &#39;max_allowed的处理办法

今天我在使用Navicat导入.sql文件数据时,发现本来是80万条的数据,结果只导入了10万条左右,而且在其错误信息日志中,我发现了这样一条错误:1153 - Got a packet bigger than 'max_allowed. 度娘了一番后,发现越来是我的SQL文件远远大于MySQL默认执行的文件大小,所以执行不过去. 解决方法: 在MySQL安装目录下找到文件my.ini,搜索[mysqld],在其下面添加一句话 max_allowed_packet=521M  ##该处按照自己的

VC++ 通过ADO连接数据库查询时返回空值报错的解决方案

当数据库的字段值允许为空时, 而且此时内容也为空时,则执行查询会出错,例如 CString str = pRecordset->GetFields()->GetItem((long)0)->GetValue(); 或者 str= pRecordset->GetCollect("posInfo"); 会弹出如下窗口提示出错! 更加奇怪的是  catch(...)也抓不到异常 今天碰着个问题算是头弄大了  最后终于弄好了 报错的原因:   在GetCollct返回了

Debug程序时,VS报错:由于端口“*****”正在使用,无法启动VS开发服务器

Debug程序时,VS报错:由于端口“*****”正在使用,无法启动VS开发服务器 解决办法: 右键单击web项目,选择“属性”,选择属性页左侧的web选项卡,在选项卡页面的下部有一个“服务器--使用VisualStuido开发服务器--特定端口”的选项,可以设置为自动分配端口或者修改特定端口

gitlab pipelines job执行时日志较大报错

问题描述 gitlab pipelines job执行时日志较大报错 Job's log exceeded limit of 4194304 bytes. 解决方案 出现该问题主要是因为gitlab runner默认日志大小为4096,修改相关配置即可 1.修改gitlab runner配置/etc/gitlab-runner/config.toml concurrent = 1 check_interval = 0 [[runners]] name = "ci" url = &quo

前端ajax用post方式提交json数据给后端时,网络报错 415

项目框架:spring+springmvc+mybatis 问题描述:前端ajax用post方式提交json数据给后端时,网络报错 415 前端异常信息:Failed to load resource: the server responded with a status of 415 (Unsupported Media Type) 后端异常信息:无 报错原因:缺少jackson包 类似问题注意点: springmvc添加配置.注解: pom.xml添加jackson包引用: Ajax请求时没