linux系统源码安装软件经常会遇到库文件不存在,错误信息大多如下:
BBoard.c:27:28: error: X11/IntrinsicP.h: No such file or directory
BBoard.c:28:27: error: X11/Intrinsic.h: No such file or directory
BBoard.c:29:23: error: X11/Xutil.h: No such file or directory
BBoard.c:30:28: error: X11/StringDefs.h: No such file or directory
安装库文件libx11-dev
sudo apt-get install libx11-dev
安装依赖文件
sudo apt-get install apt-file
sudo apt-file update
apt-file search XXXX.h
如:安装Intrinsic.h
sudo apt-get install apt-file
sudo apt-file update
apt-file search Intrinsic.h
搜索结果如下:
libxt-dev: usr/include/X11/Intrinsic.h
因此,只需安装libxt-dev即可:
sudo apt-get install libxt-dev
以上,问题解决