Ruby Gem proxy settings

Source: Internet
Author: User

May be the cause of the national firewall package, the installation of Railsinstaller after the execution always error,

Bundle Install
DL is deprecated, 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), where is:
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)

It is important to set up a proxy for this Ruby gem, and here are a few commands

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 proxy settings

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.