当我在MacBook上使用它时,宝石有问题。
错误信息是:
ERROR: While executing gem ... (Gem::Exception)
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
答案 0 :(得分:0)
我找到了解决方案,它对我有用;尝试按照以下步骤操作(您应该在Mac上安装自制软件:http://brew.sh/和rvm:http://rvm.io/):
1. rvm get stable
2. rvm reload
3. brew update
4. brew install openssl
5. brew link openssl --force
6. brew install curl-ca-bundle
7. rvm autolibs enable
8. rvm remove x.x.x (x.x.x is the Ruby version you're using- e.g. 2.1.0. If you use multiple Rubies, you will need to do this for all of them. To list your rubies, use rvm rubies)
9. rvm install x.x.x (Reinstall the Ruby you just uninstalled.)
10. gem install bundler