markdown Ruby bundle install中出现奇怪的OpenSSL错误

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown Ruby bundle install中出现奇怪的OpenSSL错误相关的知识,希望对你有一定的参考价值。

### The Error:
```bash
$ bundle install
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.
```

### [The Solution](https://stackoverflow.com/questions/15212104/ruby-and-you-must-recompile-ruby-with-openssl-support-or-change-the-sources-in):
```bash
rvm get latest    
brew install openssl    
rvm reinstall 1.9.3 --with-openssl-dir=`brew --prefix openssl`
```

note: replace 1.9.3 with whichever version of ruby you need installed with openssl support

以上是关于markdown Ruby bundle install中出现奇怪的OpenSSL错误的主要内容,如果未能解决你的问题,请参考以下文章

bundler 如何在 vendor/bundle/bin 和 vendor/bundle/ruby/2.6.0/bin 之间进行选择?

整理Ruby相关的各种概念(rvm, gem, bundle, rake, rails等)

Ruby bundle exec

使用 Docker 镜像运行 bundle install 会忽略 bundle config 设置

Ruby(bundle install,bundle update)FAILS无法安装gems http_parser.rb,eventmachine

在Ruby中捆绑gem加载错误