On 16/12/2016 14:10, Krzysztof Kluczynski wrote:
While compiling gcc I encounter errors during make :

configure:3462: /sources/gcc-6.2.0/build/./gcc/xgcc -B/sources/gcc-6.2.0/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -o conftest -g -O2 conftest.c >&5 /sources/gcc-6.2.0/build/./gcc/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

I installed zlib in a previous step and the files are in /usr/lib and /lib,

root:/sources/gcc-6.2.0/build/x86_64-pc-linux-gnu/libgcc# find / -name libz*
/usr/lib/libz.a
/usr/lib/libz.so.1
/usr/lib/libz.so
/lib/libz.so.1
/lib/libz.so.1.2.8
/usr/lib should not contain libz.so.1, because it should have been moved to /lib with the command "mv -v /usr/lib/libz.so.* /lib"
If you have logged the output of that command, you might check that.

Also, could you check the output of "ls -l /lib/libz.so*" and "ls -l /usr/lib/libz.so*"?

Regards
Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to