Chinaunix首页 | 论坛 | 博客
  • 博客访问: 110952
  • 博文数量: 27
  • 博客积分: 1163
  • 博客等级: 少尉
  • 技术积分: 240
  • 用 户 组: 普通用户
  • 注册时间: 2005-10-18 15:35
文章分类

全部博文(27)

文章存档

2010年(5)

2009年(5)

2008年(1)

2007年(5)

2006年(4)

2005年(7)

分类: 系统运维

2009-10-15 15:02:58

在linux x64系统上编译httpd-2.0.57的时候出现下面错误
/usr/lib/libexpat.so: could not read symbols: File in wrong format
 
解决方法如下:
一、方法
1、make clean
2、# ./configure --prefix=/usr/local/apache --enable-modules=so --with-expat=builtin
3、make
4、make install
 
 
二、方法
1、删除安装目录下的configure文件,在我的环境中是httpd-2.0.57/configure
2、删除“httpd-2.0.57/srclib/apr-util/configure”
3、通过以下命令重建编译文件(以下命令在http-2.0.57/目录下运行)。
#cd httpd-2.0.57
#./buildconf
4、通过以上重建编译文件,现在可以拥有64位的apr-util了,最后在编辑时加上以上参数:
--enable-lib64
# ./configure --enable-lib64 --libdir=/usr/lib64 --enable-module=so --prefix=/usr/local/apache
5、make
6、make install
阅读(1749) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~