错误1
checking for bogus pkg-config... configure: error: yes, from unknown origin. This *will* break the build. Please modify your PATH variable so that pkgconf-2.5.1/pkgconf is no longer found by configure scripts.
排查思路:
- 怀疑是自编译未
make installpkg-config环境变量配置问题,但是执行pkg-config --version命令,返回0.29.2,说明pkg-config环境变量配置正确。 - 检查环境变量
PKG_CONFIG_PATH也没有问题,执行pkgconf --libs openssl返回-L/opt/homebrew/Cellar/openssl@3/3.5.0/lib -lssl -lcrypto,说明pkg-config环境变量配置正确。 - 检查
configure文件,发现如下内容

