在 OSX 上,下载 ruby repository 后来自 github 的最新提交并按照说明进行构建,我运行 make
但出现错误:
Failed to configure openssl. It will not be installed.
如果我运行 make check
,我会得到更多信息。
Skipping `gem cert` tests. openssl not found.
...
`<class:TestGemRemoteFetcher>': uninitialized constant TestGemRemoteFetcher::OpenSSL (NameError)
显然它找不到 openssl,但我通过 Brew 安装了它。我错过了什么?
这类问题有很多答案 ( this, for example ),但我似乎无法使任何解决方案起作用。
最佳答案
Brew 安装 openssl
库作为 keg-only。尝试将 openssl 的路径传递给构建脚本:
./configure --with-openssl-dir="$(brew --prefix openssl)"
关于编译Ruby报错: Failed to configure openssl. 不会安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36915504/