为了账号安全,请及时绑定邮箱和手机立即绑定
关注
安迪刘

bundle install 提示如下,是需要翻墙解决么

vagrant@precise64:/vagrant/meetup$ bundle install
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...

Gem::RemoteFetcher::FetchError: SocketError: getaddrinfo: Name or service not known (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.


2014-12-05 源自:Web app---Rails10日谈 4-1 25834 浏览 9 回答

这个确实是由于被墙了的原因,给你提供一个不用翻墙解决的方法

淘宝做了一个gem镜像,地址是http://ruby.taobao.org/  按照网站的教程弄完再试一下应该就可以了

2014-12-29
回复 1

qq_Traveller_0

解决了!
#1 2015-07-21 回复

Gemfile 里,第一个

source 'https://rubygems.org/'

改成

source 'https://ruby.taobao.org/'


2015-07-02
回复 1

達達尼亞

这个方法解决了问题。
#1 2015-09-23 回复

确实是没有连上,可以翻墙试试。不过我用的北方联调是不用翻墙的

2014-12-05
回复 0

根据提示执行一下:gem install rake -v ‘10.4.2’

2014-12-12
回复 0

xxx@vagrant-ubuntu-trusty-64:/vagrant/meetup$ bundle install

Fetching source index from https://ruby.tabao.org/

Retrying source fetch due to error (2/3): Bundler::HTTPError Could not fetch specs from https://ruby.tabao.org/


2015-04-19
回复 0

zhong999

淘宝镜像 写错了~
#1 2015-04-19 回复

xxx@vagrant-ubuntu-trusty-64:/vagrant/meetup$ bundle install

Fetching source index from https://ruby.taobao.org/

2015-04-19
回复 0

超超恋空

发现也是这个情况,这都是怎么了
#1 2015-06-09 回复

我的将http://ruby.taobao.org/ 改成 https://ruby.taobao.org/ 就可以了!

2016-03-07
回复 0

https://ruby.taobao.org/

2016-03-13
回复 0

$ bundle install
Fetching source index from https://gems.ruby-china.org/
Retrying fetcher due to error (2/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://gems.ruby-china.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (3/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://gems.ruby-china.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (4/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://gems.ruby-china.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Could not verify the SSL certificate for https://gems.ruby-china.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most
likely your system doesn't have the CA certificates needed for verification. For
information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect
without using SSL, edit your Gemfile sources and change 'https' to 'http'.
有谁遇到相同问题的吗,怎么解决的

2016-08-09
回复 0

雨天的渔人

淘宝的镜像也试过了,都是ssl认证的问题
#1 2016-08-09 回复

qq_颜轩_0 回复 雨天的渔人

请问您的这个问题怎么解决的?
#2 2018-01-28 回复

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信