天天看點

Perhaps you should add the directory containing libpcre.pc to the PKG_CONFIG_PATH

錯誤如下:

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.
      
  • 下載下傳編譯
https://blog.csdn.net/quantum7/article/details/106133096
  • 配置PKG_CONFIG_PATH
  • 改名

經過前面的操作,怎麼還有錯?

到lib/pkgconfig下,發現有一個libpcre2-8.pc,這是因為你使用了pcre2。下載下傳編譯pcre即可。

繼續閱讀