ruby gem 代理設定

來源:互聯網
上載者:User

標籤: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 代理設定

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.