Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6888552
  • 博文数量: 3857
  • 博客积分: 6409
  • 博客等级: 准将
  • 技术积分: 15948
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-02 16:48
个人简介

迷彩 潜伏 隐蔽 伪装

文章分类

全部博文(3857)

文章存档

2017年(5)

2016年(63)

2015年(927)

2014年(677)

2013年(807)

2012年(1241)

2011年(67)

2010年(7)

2009年(36)

2008年(28)

分类: LINUX

2014-07-31 12:01:19

因为编译安装的问题,在思考yum安装是非常便利,但是是否因此导致很多软件的功能装不全呢,是否yum的功能我还会得不够呢?


最近在学习apache方面的东西,在centos5.10上编译安装apache2.2.27,configure这一步问题蛮多,都是出在一些软件包没有装的问题上。

1.configure的命令如下:

/configure --prefix=/etc/httpd --enable-deflate --enable-expires --enable-headers --enable-modules=most --enable-so \
--with-mpm=worker --enable-rewrite,执行几次都没有成功,报错比较多,只能一样一样的解决。


2.编译的模块比较多,configure的过程出现的东西非常多,用xshell记录下日志。

# more /tmp/hpce/1.log
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Configuring APR library
Platform: x86_64-unknown-linux-gnu
checking for working mkdir -p... yes

报错 x86_64-unknown-linux-gnu我开始还是比较担心会不会是因为不兼容64位的系统导致的,不过不算主要的问题,观察日志,另外一个比较明显的问题是C compiler很多报错,就估计是gcc相关的包都没装。

3.yum安装相关的包yum install gcc.x86_64 -y

yum install sqlite-devel -y

yum install gcc-c++ libstdc++-devel -y

安装了这些包后,执行./configure编译会报一个mod_deflate相关的错误,configure: error: mod_deflate has been requested but can not be built due to prerequisite failures,搜索了一下,有网友提醒需要安 zlib-devel工具,尝试

yum install  zlib-devel -y后再次尝试./configure,这次顺利通过了,后面执行make和make install都没啥要说的,问题解决。

阅读(999) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~