[Solved] xml/apr_xml.c:35:19: fatal error: expat.h: No such file or directory #include <expat.h>

The running environment of this blog is CentOS 7.6

Problem description

The following error was encountered while installing Apache

xml/apr_xml.c:35:19: fatal error: expat.h: No such file or directory
 #include <expat.h>

Solution:

Just install expat devel and recompile

yum -y install expat-devel

Read More: