如同这位提问者由于502 Bad Gateway
错误,以下PHP 文档./config
我正在尝试使用修改后的步骤从头构建 PHP Mongo 驱动程序
./configure --with-mongodb-ssl=openssl CFLAGS='-I /opt/homebrew/include'
openssl@3
我还在安装了Homebrew /opt/homebrew/include/openssl
,它是 的符号链接/Cellar/openssl@3/3.1.3/include/openssl
。
但是,当我运行 config 命令时,出现无法找到它的这些错误:
checking whether to enable crypto and TLS... openssl
checking deprecated option for OpenSSL library path... auto
checking for cc options needed to detect all undeclared functions... none needed
configure: checking whether OpenSSL is available
checking for openssl... no
checking for EVP_DigestInit_ex in -lcrypto... no
configure: checking whether OpenSSL >= 1.1.0 is available
checking for OPENSSL_init_ssl in -lssl... no
configure: checking whether OpenSSL < 1.1.0 is available
checking for SSL_library_init in -lssl... no
configure: error: OpenSSL libraries and development headers could not be found
值得一提的是,我也[email protected]
安装了,但是当我尝试卸载它时,我收到一条消息,说它是必需的pickle
。
安装是否会引起冲突?还是我需要修复其他问题?
答案1
所以我的问题只是我没有pkg-config
安装。一旦我通过 homebrew ( brew install phg-config
) 安装它,它就可以正常构建。