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


Could you please advise.

Thanks
Krzysztof
-- 
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