Piper McCorkle
Piper McCorkle

Reputation: 1084

LFS: `bash: /tools/bin/gcc: No such file or directory`

I type

root:/# gcc

and somehow this happens:

bash: /tools/bin/gcc: No such file or directory

Obviously, the $PATH works and is finding /tools/bin/gcc. I am chroot'd into $LFS and am on this step: http://www.linuxfromscratch.org/lfs/view/stable/chapter06/linux-headers.html.

EDIT: Now make mrproper is no longer giving me a cannot find gcc error. Weird.

EDIT2: Nevermind,

root:/sources/linux-3.13.3# make mrproper
make: gcc: Command not found

Upvotes: 3

Views: 3210

Answers (1)

Etienne Gautier
Etienne Gautier

Reputation: 3227

For Googlers with x86-64 systems:

ln -sv /tools/lib/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2

Upvotes: 8

Related Questions