可能是国家防火墙的原因包,安装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 (
为此设置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