gpt4 book ai didi

ruby - 无法在 Mountain Lion 上使用 RVM 安装 OpenSSL 包

转载 作者:数据小太阳 更新时间:2023-10-29 07:19:23 32 4
gpt4 key购买 nike

我正在全新安装的 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 要求,看来我应该使用 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

最佳答案

我使用 hombrew 安装 openssl。

brew install openssl

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

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

关于ruby - 无法在 Mountain Lion 上使用 RVM 安装 OpenSSL 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14038864/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com