编译Ruby报错: Failed to configure openssl. 不会安装

标签 c ruby unix

在 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/

相关文章:

ruby-on-rails - 如何在 Devise 中实现安全的主密码/ super 密码身份验证?

python - 将 EPOCH 时间戳转换为日期

linux - 如何使用安装前缀

c - 使用 Printf 打印二维数组元素

c - c 中是否有一种干净的方法来创建一个函数来调用具有不同参数的其他函数?

ruby - 正则表达式仅在模式内替换

ruby - 在延迟的 sinatra 请求中使用 send_file

c - 如何使用静态 libcurl 编译程序?

iphone - 如何划分数字和整数?

bash - 如何编写 Unix 脚本以在多个远程服务器上快速启动服务?