本文纯属个人见解,是对前面学习的总结,如有描述不正确的地方还请高手指正~
Ubuntu 10.04 makemenuconfig 犯错解决办法
在ubuntu10.04下makemenuconfig现出以下错误:
root@ubuntu:~/Resources/linux-2.6.32# make menuconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/docproc HOSTCC scripts/basic/hash HOSTCC scripts/kconfig/conf.o scripts/kconfig/conf.c: In function ‘conf_askvalue’: scripts/kconfig/conf.c:105: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result scripts/kconfig/conf.c: In function ‘conf_choice’: scripts/kconfig/conf.c:307: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result HOSTCC scripts/kconfig/kxgettext.o *** Unable to find the ncurses libraries or the *** required header files. *** 'make menuconfig' requires the ncurses libraries. *** *** Install ncurses (ncurses-devel) and try again. *** make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1 make: *** [menuconfig] Error 2
理处方法:
root@ubuntu:~/Resources/linux-2.6.32# sudo apt-get install libncurses5-dev Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libncurses5-dev 0 upgraded, 1 newly installed, 0 to remove and 289 not upgraded. Need to get 1,564kB of archives. After this operation, 6,627kB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/main libncurses5-dev 5.7+20090803-2ubuntu3 [1,564kB] Fetched 1,564kB in 2min 37s (9,960B/s) Selecting previously deselected package libncurses5-dev. (Reading database ... 122910 files and directories currently installed.) Unpacking libncurses5-dev (from .../libncurses5-dev_5.7+20090803-2ubuntu3_i386.deb) ... Processing triggers for man-db ... Setting up libncurses5-dev (5.7+20090803-2ubuntu3) ...
按照以上方法可以胜利解决问题,但是一样的方法在ubuntu10.10中却是总行不通
文章结束给大家分享下程序员的一些笑话语录: 与女友分手两月有余,精神萎靡,面带菜色。家人介绍一女孩,昨日与其相亲。女孩果然漂亮,一向吝啬的我决定破例请她吃晚饭。
选了一个蛮贵的西餐厅,点了比较贵的菜。女孩眉开眼笑,与我谈得很投机。聊着聊着,她说:“我给你讲个笑话吧。”“ok”
“一只螳螂要给一只雌蝴蝶介绍对象,见面时发现对方是只雄蜘蛛。见面后螳螂问蝴蝶‘如何?’,‘他长的太难看了’,‘别看人家长的丑,人家还有网站呢’。”
“呵呵………”我笑。忽然她问:“你有网站吗?”