【问题标题】:Unable to install OpenSSL package with RVM on Mountain Lion无法在 Mountain Lion 上使用 RVM 安装 OpenSSL 包
【发布时间】:2012-12-11 21:50:14
【问题描述】:

我在全新安装的 Mountain Lion 上设置 RVM、Rails 等。 我正在关注指南“How to Install Xcode, Homebrew, Git, RVM, & Ruby 1.9.3 on Snow Leopard, Lion, and Mountain Lion”。

在使用 Ruby (1.9.3) 安装 RVM 后,我执行了 rvm requirement,看来我应该使用 Homebrew 安装 apple-gcc42:

Homebrew:

  If you are using Homebrew, you can install the apple-gcc42 and required libraries from homebrew/dupes:

      brew update
      brew tap homebrew/dupes
      brew install autoconf automake apple-gcc42
      rvm pkg install openssl

当我安装 OpenSSL 包时,我收到以下错误并且不知道如何继续:

marvin:~ george$ rvm --skip-autoreconf pkg install openssl
Fetching openssl-1.0.1c.tar.gz to /Users/george/.rvm/archives
######################################################################## 100.0%
Downloaded archive checksum did not match, archive was removed!
If you wish to continue with not matching download add '--verify-downloads 2' after the command.


Please note that it's required to reinstall all rubies:

    rvm reinstall all --force

Updating openssl certificates
Error running 'update_openssl_certs', please read /Users/george/.rvm/log/openssl.certs.log

指定的日志文件内容如下,推测是因为OpenSSL归档被丢弃了:

[2012-12-26 22:23:04] update_openssl_certs
/Users/george/.rvm/scripts/functions/support: line 139: cd: /Users/george/.rvm/usr/ssl: No such file or directory

【问题讨论】:

  • 我已经使用 --verify-downloads 2 选项运行了该命令,并且一切似乎正常。我真的不明白为什么这是必要的......
  • 下载的存档与最初上传的存档不同,并且与校验和测试相匹配。通常这没什么大不了的,但由于 openssl 是关于加密的,你仍然应该小心。在大多数情况下,此问题是由更新的软件包引起的。
  • 确保为 RVM 开票 -> github.com/wayneeseguin/rvm/issues

标签: ruby ruby-on-rails-3 openssl rvm osx-mountain-lion


【解决方案1】:

我使用hombrew安装opensll。

brew install openssl

如果这不起作用,请查看此链接以获取答案。

http://railsapps.github.io/openssl-certificate-verify-failed.html

【讨论】:

    猜你喜欢
    • 2012-12-12
    • 1970-01-01
    • 2013-03-21
    • 2013-04-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-18
    相关资源
    最近更新 更多