configure: error: GNU libltdl (Libtool) not found, see README

3.5k views Asked by At

I'm trying to install GNU Guile so that I can later install Guix. My environment is pretty locked down, but they do allow us build tools. I've been trying to get pianobar installed for the past few days, and it works, but I get the output "Cannot Open Audio Device". I have to compile libao-pulse, which requires Guile, but no matter what arguments I pass to the configure script, it always ends on configure: error: GNU libltdl (Libtool) not found, see README.

I've tried setting LD_LIBRARY_PATH, LD_FLAGS, CFLAGS, and several others, but I can't seem to get it to get past this step.

My build environment looks like this:

├── ~/local
   ├── bin
   ├── build
   ├── include
   ├── lib
   └── share

I have environment variables ($PREFIX, $build, and $PATH) set to reflect this setup.

What am I doing wrong?

config.log: https://gist.github.com/ijustlovemath/e197ee17db459ab46c1a

1

There are 1 answers

8
C. K. Young On BEST ANSWER

The telling lines from your log are these:

configure:44552: checking for libltdl
configure:44574: gcc -o conftest -g -O2 -I/home/redacted/local/include -L/home/redacted/local/lib conftest.c /home/redacted/local/lib/libltdl.so -L/usr/lib /usr/lib/libdl.so -Wl,-rpath -Wl,/home/redacted/local/lib -Wl,-rpath -Wl,/usr/lib  >&5
/usr/lib/libdl.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status

That is the only place in your config.log that mentions /usr/lib/libdl.so. My hunch is that your local copy of libtool is misconfigured.