Wednesday, April 22, 2009

Building on 64 bit Linux system

If ./configure can't guess the right system try run a compiler like gcc:

> gcc -dumpmachine
x86_64-redhat-linux

If make gives error:
"xxx.so: could not read symbols: File in wrong format"

Maybe wrong library is loaded for compile:

./configure --target=x86_64-redhat-linux LDFLAGS=-L/usr/lib64

See http://www.c3.lanl.gov/~pakin/software/conceptual/userguide/Could-not-read-symbols.html