【发布时间】: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