我打字
显然,$PATH 起作用并找到了 /tools/bin/gcc。我已经 chroot 到 $LFS 并且正在进行这一步骤: http://www.linuxfromscratch.org/lfs/view/stable/chapter06/linux-headers.html。
编辑:现在
编辑2:没关系。
root:/# gcc
然后出现了这种情况:
bash: /tools/bin/gcc: No such file or directory
显然,$PATH 起作用并找到了 /tools/bin/gcc。我已经 chroot 到 $LFS 并且正在进行这一步骤: http://www.linuxfromscratch.org/lfs/view/stable/chapter06/linux-headers.html。
编辑:现在
make mrproper
不再给出找不到 gcc 的错误。奇怪。编辑2:没关系。
root:/sources/linux-3.13.3# make mrproper
make: gcc: Command not found
chroot
,请确保在指定的位置内存在gcc
。 - nneonneochroot
环境之外运行readelf -l /tools/bin/gcc | grep interpreter
并将结果发布吗? - user5917293