红联Linux门户
Linux帮助

Make Apache httpd 2.2.8 in Fedora 8 64bit Failed - libexpat

发布时间:2008-02-16 01:16:45来源:红联作者:Dopsdck
For whatever reason, you may need to build the Apache httpd from source. Build apache from source file is among the easiest one if you are talking about LAMP. But that’s not the case if you’re building on a 64bit machine. Most probably you’ll get the following message:

/usr/lib/libexpat.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[3]: *** [libaprutil-1.la] Error 1
make[3]: Leaving directory `/Install/httpd-2.2.8/srclib/apr-util’
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/Install/httpd-2.2.8/srclib/apr-util’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Install/httpd-2.2.8/srclib’
make: *** [all-recursive] Error 1

The main reason is they don’t like expatriate. No, seriously the main culprit is the /usr/lib/libexpat.so: could not read symbols: File in wrong format. The quick fix is quite simple, just use the internal libexpat by adding -with-expat=builtin when configuring the build.

./configure --prefix=/usr/local/apache2 --enable-module=so --enable-mods-shared=most --with-expat=builtin
文章评论

共有 0 条评论