错误如下:

checking for libpcre >= 7.8... Package libpcre was not found in the pkg-config search path. Perhaps you should add the directory containing `libpcre.pc' to the PKG_CONFIG_PATH environment variable No package 'libpcre' found
configure: error: Library requirements (libpcre >= 7.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
  • 下载编译


  • 配置PKG_CONFIG_PATH
  • 改名

经过前面的操作,怎么还有错?

到lib/pkgconfig下,发现有一个libpcre2-8.pc,这是因为你使用了pcre2。下载编译pcre即可。