1、前言php
最近進行uClinux移植,make menuconfig時碰到以下問題:html
[hello@localhost uClinux-dist]$ make menuconfig find vendors -mindepth 2 '(' -name .svn -prune ')' -o -type f -name Kconfig -print | sed 's:^:source ../:' > vendors/Kconfig config/mkconfig > Kconfig KCONFIG_NOTIMESTAMP=1 /home/hello/Desktop/nios2-linux/uClinux-dist/config/kconfig/mconf Kconfig /bin/sh: /home/hello/Desktop/nios2-linux/uClinux-dist/config/kconfig/mconf: cannot execute binary file make: *** [menuconfig] Error 126
2、解決linux
參考<http://www.alteraforum.com/forum/archive/index.php/t-38370.html> 文中提到的將mconf從新編譯可解決問題,但文中未說起如何從新編譯。ios
現補充以下:svn
[hello@localhost kconfig]$ cd /home/hello/Desktop/nios2-linux/uClinux-dist/config/kconfig [hello@localhost kconfig]$ ls
[hello@localhost kconfig]$ make clean [hello@localhost kconfig]$ make all
而後從新make menuconfig便可。spa