ubuntu 编译 fatal error: expat.h:错误解决

xml/apr_xml.c:35:10: fatal error: expat.h: No such file or directory
   35 | #include 
      |          ^~~~~~~~~
compilation terminated.
make[1]: *** [/data/apr-util/apr-util-1.6.3/build/rules.mk:207: xml/apr_xml.lo] Error 1
make[1]: Leaving directory '/data/apr-util/apr-util-1.6.3'
make: *** [/data/apr-util/apr-util-1.6.3/build/rules.mk:119: all-recursive] Error 1

安装:

# apt install libexpat1-dev

Ubuntu 22.04.3 LTS

你可能感兴趣的:(ubuntu,linux,运维)