x64系统上编译apache报错

在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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章