可能是国家防火墙的原因包,安装railsinstaller后执行总是出错,
bundle install
DL is deprecated, please use Fiddle
Fetching gem metadata from https://rubygems.org/……….
Resolving dependencies…
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read
server certificate B: certificate verify failed (https://rubygems.org/gems/rake-
10.4.2.gem)
An error occurred while installing rake (10.4.2), and Bundler cannot continue.
Make sure that gem install rake -v ‘10.4.2‘
succeeds before bundling.
gem install rake -v 10.4.2
ERROR: Could not find a valid gem ‘rake’ (= 10.4.2), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://api.rubygems.org/specs.4.8.gz)
为此设置ruby gem 的代理很重要,下面是几个命令
gem help
gem help commands
gem sources -h
gem sources -l
gem sources -r https://rubygem.org/
gem sources -a http://ruby.taobao.org
原文地址:http://blog.csdn.net/u010640235/article/details/44957525