试图为同事安装一台新的macbook.进展不顺利.

首先,我安装OpenSSL:

Heathers-MacBook-Pro:~ heather$ rvm pkg install openssl
Fetching openssl-1.0.1c.tar.gz to /Users/heather/.rvm/archives
######################################################################## 100.0%
Extracting openssl to /Users/heather/.rvm/src/openssl-1.0.1c
Configuring openssl in /Users/heather/.rvm/src/openssl-1.0.1c.
Compiling openssl in /Users/heather/.rvm/src/openssl-1.0.1c.
Installing openssl to /Users/heather/.rvm/usr

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

    rvm reinstall all --force

Updating openssl certificates

然后我try 用openssl安装ruby...

Heathers-MacBook-Pro:website heather$ rvm install 1.9.3 --with-openssl-dir=$HOME/.rvm/usr
Fetching yaml-0.1.4.tar.gz to /Users/heather/.rvm/archives
Extracting yaml to /Users/heather/.rvm/src/yaml-0.1.4
Configuring yaml in /Users/heather/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/heather/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/heather/.rvm/usr
Installing Ruby from source to: /Users/heather/.rvm/rubies/ruby-1.9.3-p392, this may take a while depending on your cpu(s)...
ruby-1.9.3-p392 - #downloading ruby-1.9.3-p392, this may take a while depending on your connection...
ruby-1.9.3-p392 - #extracting ruby-1.9.3-p392 to /Users/heather/.rvm/src/ruby-1.9.3-p392
ruby-1.9.3-p392 - #extracted to /Users/heather/.rvm/src/ruby-1.9.3-p392
ruby-1.9.3-p392 - #configuring
ruby-1.9.3-p392 - #compiling
ruby-1.9.3-p392 - #installing 
Removing old Rubygems files...
Installing rubygems-1.8.25 for ruby-1.9.3-p392 ...
Installation of rubygems completed successfully.
Saving wrappers to '/Users/heather/.rvm/bin'.
ruby-1.9.3-p392 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p392 - #importing default gemsets, this may take time ...
Install of ruby-1.9.3-p392 - #complete 

Heathers-MacBook-Pro:website heather$ bundle update
Could not load OpenSSL.
You must recompile Ruby with OpenSSL support or change the sources in your Gemfile from 'https' to 'http'. Instructions for
compiling with OpenSSL using RVM are available at rvm.io/packages/openssl.

顺便说一句,gem文件上写着"源https://rubygems.org"

思想?

推荐答案

试试这个:

rvm get head
rvm pkg remove
rvm requirements run  # if brew gives you warnings about formulas to install, run "brew install" for each before moving on.

rvm reinstall [the version you need (i.e: 2.0.0)]

Ruby相关问答推荐

类 SpecificationPolicy 的超类不匹配

配置 SubLime Linter 插件以使用 Ruby 1.9 语法

我可以在 Ruby 的 heredoc 中访问变量吗?

ruby `encode': "\xC3" 从 ASCII-8BIT 到 UTF-8 (Encoding::UndefinedConversionError)

在 Ruby 中为类添加实例变量

以编程方式获得完整的 Ruby 版本?

如何在 Sinatra 中解析 JSON 请求正文一次并将其公开给所有路由?

检测 ruby​​ 是否在 Windows 上运行的正确方法是什么?

如何使用 Ruby 的邮件 gem 通过 smtp 发送Electron邮件?

Scala 的扩展性是否优于其他 JVM 语言?

如何获取字符串中所有出现的 Ruby 正则表达式的匹配数据?

如何让 Ruby 解析时间,就好像它在不同的时区一样?

理解|| Ruby 中 If 条件中的 OR 运算符

Ruby注入初始为哈希

如何按字母顺序排列忽略大小写的数组?

从命令行使用Bundle 器将 gem 添加到 gemfile

将 CSV 文件转换为哈希数组

gem 安装失败并出现 openssl 失败

Python 中的一切都像 Ruby 一样是对象吗?

如何在没有 RVM 的 Ubuntu 上安装 Ruby 2