markdownrubybundleinstall中出现奇怪的openssl错误(代码片段)

author author     2022-12-13     704

关键词:

### 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