今天在centos5.3 64位的機器上編譯apache 2.2.6 出現
/usr/lib/libexpat.so: could not read symbols: File in wrong format
解決方案:
1、刪除安裝目錄下的configure文件,在我的環境中是httpd-2.2.6/configure
2、刪除“httpd-2.2.6/srclib/apr-util/configure”
3、通過以下命令重建編譯文件(以下命令在http-2.2.6/目錄下運行)。
#./buildconf
#./configure --enable-lib64 --prefix=/usr/local/apache2 --with-included-apr --enable-so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared --enable-static-support --disable-userdir
#make && make install
#echo '/usr/local/apache2/bin/apachectl start ' >> /etc/rc.local
新聞熱點
疑難解答