我无法安装 gems,我需要在浏览器设置中做哪些更改才能下载?我正在使用 Windows 7
C:\Users\MAX JOHN>gem install rails --no-ri --no-rdoc
ERROR: Could not find a valid gem 'rails' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol (https://ruby
gems.org/latest_specs.4.8.gz)
C:\Users\MAX JOHN>gem install mysql
ERROR: Could not find a valid gem 'mysql' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol (https://ruby
gems.org/latest_specs.4.8.gz)
最佳答案
不建议将源设置为 http 而不是 https,因为它会产生安全问题。 尝试 ping https://rubygems.org ,这将告诉您问题是否与您的连接有关。
假设您使用的是 Rails 3,请查看这篇关于如何设置 WEBrick 以使用 SSL 的帖子:
http://www.nearinfinity.com/blogs/chris_rohr/configuring_webrick_to_use_ssl.html
关于ruby-on-rails - 无法安装 gem ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17044497/