Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

When I try to compile Binutils, Glibc and Zlib using chroot on my LFS system, I get this error:

ar: error while loading shared libraries: cannot open shared object file: No such file or directory

I compiled Binutils before without using chroot, the files libbfd.a,, and exist both in /tools/lib/ and /usr/lib/

I don't know where the compiler is searching for it. How to continue compilation?

share|improve this question
In Ubuntu current version, I need symlink: sudo ln -s /usr/lib/ /usr/lib/ – shakaran Aug 1 '14 at 10:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.