码迷,mamicode.com
首页 > 其他好文 > 详细

ruby gem 代理设置

时间:2015-04-09 11:52:54      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:ruby   代理   设置   

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

ruby gem 代理设置

标签:ruby   代理   设置   

原文地址:http://blog.csdn.net/u010640235/article/details/44957525

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!