Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#180 Compilation with --libdir=/usr/lib64 fails

medit
open
nobody
3
2014-06-18
2014-06-16
John Coppens
No

After configuring with --prefix=/usr --libdir=/usr/lib64, compilation failed in the last step about /usr/lib/liblzma.la not being found.

Checking the compilation command, I found -L/usr/lib near the -lpython2.7 and in config.log:

PYTHON_LIBS='-L/usr/lib -lpython2.7'

Python is installed in /usr/lib64. It also states so in python2.7.pc file. And python2-config reports the same. I have no idea where the /usr/lib comes from...

Maybe not directly related. The config.log file also states:

--with-python-dir=/lib64/python2.7/site-packages

which doesn't sound right either.

I could finalize compilation explicitly defining:

PYTHON_LIBS=/usr/lib64/libpython2.7.so ./configure --prefix=/usr --libdir=/usr/lib64

Though I solved the problem, I would be interested in investigating where this problem originates.

Discussion