libexpat requested,but not found

linux系统(CentOS)编译程序过程中遇到了configure:error:*** libexpat request,but not found ***,有没有大佬知道这个问题怎么解决?这一行错误上面四行是checking expat.h usability ... no;checking expat.h presence ... no;checking for expat.h ... no;checking for XML_ParserCreate in -lbsdxml ... no

你安装下这个包试试 yum -y install expat-devel

yum install expat-devel 下这个包看看

img

就是安装expat包就OK,命令:
yum -y install expat-devel
如果已经安装了,还这报错,可尝试卸载,再安装