post separator

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

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



The reason behind it is that we are building for 64bit (x86_64) CPU while the libexpat is in 32bit format. Ideally you could point to the correct 64bit lib in /usr/lib/lib64. Nevertheless this solution work for me :-)

RSS feed | Trackback URI

8 Comments »

Gravatar Icon
Comment by en_me
2008-01-29 03:44:20

sowie bro.. me x paham.. uhuhu

 
Gravatar Icon
Comment by acai
2008-01-29 16:13:51

skrang semua dah kearah 64 bit nih..
kita yg berada kat transition period ni mmg hadapi debug camnih,hehehe..
dan yg bestnye kita terlibat secara langsung dlm proses nih:)

 
Gravatar Icon
Comment by Azhar Ahmad
2008-02-03 22:11:48

Saya gelak diri sendiri. Hari tuh masa kelas PHP, saya cakap fedora takleh pakai apache… Ahahahha

 
Gravatar Icon
Comment by azwanhadzree
2008-02-04 18:54:34

apa la kau bro, lari tajuk je akhir-akhir ni

kau boleh bagi aku cara paling senang nak setup SAP tak. Baru buat variant configuration aje aku dah agak pening :)

 
Gravatar Icon
Comment by mixterr
2008-02-10 15:31:57

ape mcm broo?? mana pergi lama xnampak!!

 
Gravatar Icon
Comment by kent
2008-02-15 14:34:10

Bro, lama lagi ker baru leh tengok gambar yang cantik2?
hopefully hasrat nak beli kamera baru tercapai..amin…

 
Gravatar Icon
Comment by adila
2008-02-21 00:58:20

bz bebenor nih…
tapi tak salah saya pernah terseremppak dengan blog baru shutterspeak…

saya pun baru mengaktifkan diri…

 
Gravatar Icon
Comment by azwanhadzree
2008-02-22 23:41:53

saje letak komen nak bagi besar sikit nama aku kat top commentator tu

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.
Close
E-mail It