当前位置: 技术问答>linux和unix
编译linux内核时,执行make mrproper后出错
来源: 互联网 发布时间:2016-07-05
本文导语: 如题,执行到下面这段代码 cd /sources/ tar xvf linux-2.6.22.5.tar.bz2 cd linux-2.6.22.5 sed -i '/scsi/d' include/Kbuild make mrproper 在此处出现了错误,错误情况如下: root:/sources/linux-2.6.22.5# make mrproper /sources/linux-2.6.22.5/scripts/gc...
如题,执行到下面这段代码
cd /sources/
tar xvf linux-2.6.22.5.tar.bz2
cd linux-2.6.22.5
sed -i '/scsi/d' include/Kbuild
make mrproper
在此处出现了错误,错误情况如下:
root:/sources/linux-2.6.22.5# make mrproper
/sources/linux-2.6.22.5/scripts/gcc-version.sh: line 11: /tools/bin/gcc: No such file or directory
/sources/linux-2.6.22.5/scripts/gcc-version.sh: line 12: /tools/bin/gcc: No such file or directory
make: gcc: Command not found
root:/sources/linux-2.6.22.5#
请问这是怎么回事,有办法解决吗???
cd /sources/
tar xvf linux-2.6.22.5.tar.bz2
cd linux-2.6.22.5
sed -i '/scsi/d' include/Kbuild
make mrproper
在此处出现了错误,错误情况如下:
root:/sources/linux-2.6.22.5# make mrproper
/sources/linux-2.6.22.5/scripts/gcc-version.sh: line 11: /tools/bin/gcc: No such file or directory
/sources/linux-2.6.22.5/scripts/gcc-version.sh: line 12: /tools/bin/gcc: No such file or directory
make: gcc: Command not found
root:/sources/linux-2.6.22.5#
请问这是怎么回事,有办法解决吗???
|
貌似先要 make menuconfig,然后 make bzImage 吧
|
你編譯內核,怎麼也得先把gcc裝上吧...
連編譯器都沒有,怎麼編譯啊?
連編譯器都沒有,怎麼編譯啊?
|
看似没有gcc怎么去编译内核?
|
http://www.linuxquestions.org/questions/linux-embedded-78/binsh-gcc-command-not-found-649627/