记录在linux mint系统下编译出现的问题

今天换个系统玩玩,拿着闲置的宏碁笔记本装了个linux mint,很不错的体验。
只不过我在编译简单的linux程序就出现问题了,提示找不到某些库,作为程序员这种问题还是比较好解决的,找不到我们给他装上就好。
问题1:

致命错误:stdio.h:没有这样的文件或目录

只需安装g++软件包并修复丢失的包含文件即可:

sudo apt-get install g++

问题2:在我make menuconfig的时候,它弹出以下错误:

mkdir -p /home/jie/github/buildroot-jie/output/build/buildroot-config/lxdialog
PKG_CONFIG_PATH="" make CC="/usr/bin/gcc" HOSTCC="/usr/bin/gcc" \
    obj=/home/jie/github/buildroot-jie/output/build/buildroot-config -C support/kconfig -f Makefile.br mconf
make[1]: Entering directory '/home/jie/github/buildroot-jie/support/kconfig'
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 *** 
 *** Install ncurses (ncurses-devel or libncurses-dev 
 *** depending on your distribution) and try again.
 *** 

这是因为配置其实是字符界面,而错误提示中也告诉我们系统中缺少 ncurses-devel或者libncurses-dev,那么安装一下就可以了。

sudo apt-get install libncurses-dev

但是提示如下:

正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
注意,选中 'libncurses5-dev' 而非 'libncurses-dev'

那么只好按照提升来安装libncurses5-dev

sudo apt-get install libncurses5-dev

然后简单开心玩耍~

发布了115 篇原创文章 · 获赞 283 · 访问量 19万+

猜你喜欢

转载自blog.csdn.net/jiejiemcu/article/details/102535936