make menuconfig出现/usr/bin/ld: cannot find -lncurses

来源:互联网 发布:物理实验数据处理软件 编辑:程序博客网 时间:2024/05/21 07:04

开始怀疑是没有安装libncurses-dev,结果发现已经安装:



研究发现是64bit/32bit lib兼容的问题,用apt-get install lib32ncurses5-dev安装就ok了:


总结:遇到这种问题,首先看有没有这个lib,如果有这个lib看ld.conf.d下面有没有把库链接进去,如果有链接进去还是报错,就要考虑lib兼容的问题


/usr/include/bits/socket.h:349:24: fatal error: asm/socket.h: No such file or directory

/usr/include/目录下面没有asm文件夹导致,ln -s x86_64-linux-gnu/asm asm解决



阅读全文
0 0
原创粉丝点击