linuxfromscratch:无法为linux安装make menuconfig

时间:2012-04-03 19:24:32

标签: linux linux-kernel kernel lfs linux-from-scratch

在本章http://www.linuxfromscratch.org/lfs/view/stable/chapter08/kernel.html

root@host# chroot "$LFS" /usr/bin/env -i \
>     HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
>     PATH=/bin:/usr/bin:/sbin:/usr/sbin \
>     /bin/bash --login
root:/# cd sources/linux-3.2.6
root:/sources/linux-3.2.6# make mrproper
  CLEAN   scripts/basic
  CLEAN   scripts/kconfig
  CLEAN   include/config
root:/sources/linux-3.2.6# make menuconfig
  HOSTCC  scripts/basic/fixdep
gcc: error trying to exec 'as': execvp: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

为什么我会遇到这样的错误?

更新

得到了答案,这与binutils安装有关,可能是binutis的安装损坏。

http://www.linuxquestions.org/questions/linux-software-2/gcc-error-trying-to-exec-%27as%27-execvp-no-such-file-or-directory-906750/

`gcc: error trying to exec 'cc1': execvp: No such file or directory` When compile program with `popen` in php

1 个答案:

答案 0 :(得分:2)

您需要安装GNU Binutils软件包。

http://www.gnu.org/software/binutils/