Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 06-21-2007, 02:01 PM   #1
Registered: Feb 2002
Location: USA
Distribution: Fedora, CENTOS
Posts: 209

Rep: Reputation: 32
Fedora 7 64bit /usr/lib/ could not read symbols: File in wrong format

I tried to compile Apache 2.2 from source on my Fedora 7 workstation (64bit install), and during the 'make' step I got this error message:
/usr/lib/ could not read symbols: File in wrong format
I'm making this post to help anyone else who might run into this problem.

The workaround that I used was to configure apache2 to use the built in expat libraries. So after you untar apache2 use this configure command:
./configure --with-expat=builtin
After that you should be able to do make and make install without problem.

Old 06-21-2007, 07:47 PM   #2
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
The problem was that /usr/lib/ is a 32-bit library, but you need to link with /usr/lib64/, the 64-bit counterpart. I think that deleting the file libtool before running ./configure might help with this, the hope being that a more appropriate version of libtool will be generated that knows to look in /usr/lib64. A more desperate strategy is to temporarily substitute the 64 bit libraries libexpat.* in /usr/lib64 for the 32 bit libraries in /usr/lib. (Or, of course, in this particular case, you can sidestep the issue.)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
oops, I stripped /usr/lib and /usr/X11R6/lib ! H_TeXMeX_H Slackware 2 02-08-2007 09:27 PM
/usr/lib/ could not read symbols: File in wrong format TrekJunky Linux - Newbie 2 10-01-2006 06:05 PM in wrong format when compiling Apache 2.2 under openSuSE 10 Basel Linux - Software 1 03-11-2006 12:49 AM
kdevelop, hello world, /usr/lib/ could not read symbols: File in wrong fo runlevel: 6 Programming 2 05-04-2005 12:37 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration