ruby – RVM和OpenSSL的麻烦

前端之家收集整理的这篇文章主要介绍了ruby – RVM和OpenSSL的麻烦前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
试图为同事设置一个新的macbook.不顺利.

首先我安装OpenSSL:

  1. Heathers-MacBook-Pro:~ heather$rvm pkg install openssl
  2. Fetching openssl-1.0.1c.tar.gz to /Users/heather/.rvm/archives
  3. ######################################################################## 100.0%
  4. Extracting openssl to /Users/heather/.rvm/src/openssl-1.0.1c
  5. Configuring openssl in /Users/heather/.rvm/src/openssl-1.0.1c.
  6. Compiling openssl in /Users/heather/.rvm/src/openssl-1.0.1c.
  7. Installing openssl to /Users/heather/.rvm/usr
  8.  
  9. Please note that it's required to reinstall all rubies:
  10.  
  11. rvm reinstall all --force
  12.  
  13. Updating openssl certificates

然后我尝试用openssl安装ruby …

  1. Heathers-MacBook-Pro:website heather$rvm install 1.9.3 --with-openssl-dir=$HOME/.rvm/usr
  2. Fetching yaml-0.1.4.tar.gz to /Users/heather/.rvm/archives
  3. Extracting yaml to /Users/heather/.rvm/src/yaml-0.1.4
  4. Configuring yaml in /Users/heather/.rvm/src/yaml-0.1.4.
  5. Compiling yaml in /Users/heather/.rvm/src/yaml-0.1.4.
  6. Installing yaml to /Users/heather/.rvm/usr
  7. Installing Ruby from source to: /Users/heather/.rvm/rubies/ruby-1.9.3-p392,this may take a while depending on your cpu(s)...
  8. ruby-1.9.3-p392 - #downloading ruby-1.9.3-p392,this may take a while depending on your connection...
  9. ruby-1.9.3-p392 - #extracting ruby-1.9.3-p392 to /Users/heather/.rvm/src/ruby-1.9.3-p392
  10. ruby-1.9.3-p392 - #extracted to /Users/heather/.rvm/src/ruby-1.9.3-p392
  11. ruby-1.9.3-p392 - #configuring
  12. ruby-1.9.3-p392 - #compiling
  13. ruby-1.9.3-p392 - #installing
  14. Removing old Rubygems files...
  15. Installing rubygems-1.8.25 for ruby-1.9.3-p392 ...
  16. Installation of rubygems completed successfully.
  17. Saving wrappers to '/Users/heather/.rvm/bin'.
  18. ruby-1.9.3-p392 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
  19. ruby-1.9.3-p392 - #importing default gemsets,this may take time ...
  20. Install of ruby-1.9.3-p392 - #complete
  21.  
  22. Heathers-MacBook-Pro:website heather$bundle update
  23. Could not load OpenSSL.
  24. You must recompile Ruby with OpenSSL support or change the sources in your Gemfile from 'https' to 'http'. Instructions for
  25. compiling with OpenSSL using RVM are available at rvm.io/packages/openssl.

顺便说一句,宝石文件说“源https://rubygems.org

想法?

解决方法

尝试这个:
  1. rvm get head
  2. rvm pkg remove
  3. rvm requirements run # if brew gives you warnings about formulas to install,run "brew install" for each before moving on.
  4.  
  5. rvm reinstall [the version you need (i.e: 2.0.0)]

猜你在找的Ruby相关文章