64位系统安装APACHE错误解决

今天为了在一台新机器上部署nagios监控ORACLE,安装APACHE的时候出现了如下错误:

环境:REDHAT 5.5 X64

httpd版本:httpd-2.2.8

错误信息:/usr/lib/libexpat.so: could not read symbols: File in wrong format

查看了好多帖子,错误很明确,是由于64BIT的操作系统编译的时候有点问题按照如下方法,即可解决:

The patch updates apu-conf.m4 to build an updated configure that knows what to do with a 64 bit directive. 

Solution: 

1. Delete file 'srclib/apr-util/configure' under 'httpd-2.0.61' 

2. Delete 'configure' file under 'httpd-2.0.61' 

3. rebuild the configure scripts, run 

./buildconf 

4. You now have a 64 bit enabled apr-util. To take advantage of it, you need to add this line to the root configure options: 

–enable-lib64, 

for example: run 

[root@fc6x64v2 packages]# ./configure --enable-lib64 -libdir=/usr/lib64 --enable-ssl --with-ssl=/usr/local/ssl --enable-module=so --prefix=/usr/local/apache2061 

make 

make install 

Then everything will OK.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值