gpt4 book ai didi

linux 从头开始​​ : Can't do make menuconfig for linux installing

转载 作者:太空宇宙 更新时间:2023-11-04 09:51:55 25 4
gpt4 key购买 nike

关于本章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

最佳答案

您需要安装 GNU Binutils 包。

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

关于linux 从头开始​​ : Can't do make menuconfig for linux installing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9999980/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com