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