Could not fetch specs from https://rubygems.org/

简介: <p><br></p> <p>[root@t1 redmine]# <strong><span style="color:#3333ff">bundle install --without development test rmagick</span></strong></p> <p><strong><span style="color:#3333ff"><br></span></st


[root@t1 redmine]# bundle install --without development test rmagick


Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all
non-root users on this machine.
Fetching source index from https://rubygems.org/
Network error while fetching https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/rails-3.2.21.gemspec.rz
[root@t1 redmine]# bundle install --without development test rmagick
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all
non-root users on this machine.
Fetching source index from https://rubygems.org/
Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Network error while fetching https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/rails-3.2.21.gemspec.rz
[root@t1 redmine]# pwd
/data/wwwroot/redmine
[root@t1 redmine]# bundle install --without development test rmagick
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all
non-root users on this machine.
Fetching source index from https://rubygems.org/
Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/

Could not fetch specs from https://rubygems.org/

解决:

[root@t1 redmine]# vim /data/wwwroot/redmine/Gemfile 

Gemfile 里,第一个

1
source  'https://rubygems.org/'  #添加 #号 下一行 添加如下:

改成

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

目录
相关文章
pip install第三方包 Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pipenv/:【解决方案】
pip install第三方包 Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pipenv/:【解决方案】
pip install第三方包 Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pipenv/:【解决方案】
|
Linux Android开发 Windows
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection to https://dl-ssl.google.com refused
修改hosts文件。文件在C:\WINDOWS\system32\drivers\etc目录下,Linux用户打开/etc/hosts文件。用记事本打开文件后添加以下内容。#Google主页203.208.
762 0
|
1月前
|
前端开发
webpack如何设置devServer启动项目为https协议
webpack如何设置devServer启动项目为https协议
141 0
|
3月前
|
Web App开发 移动开发 JavaScript
Python网络编程(三),HTTP协议
Python网络编程(三),HTTP协议
61 0
|
4月前
|
网络协议
【计算机网络-应用层】HTTP协议
【计算机网络-应用层】HTTP协议
|
1月前
|
安全 搜索推荐 数据安全/隐私保护
深入探讨HTTPS协议的原理和工作流程
【2月更文挑战第10天】
36 4
深入探讨HTTPS协议的原理和工作流程
|
2月前
|
安全 算法 Java
【JavaEE初阶】 详解HTTPS协议加密过程
【JavaEE初阶】 详解HTTPS协议加密过程
|
3月前
|
安全 算法 网络安全
浏览器 HTTPS 协议的相关知识点有哪些?
浏览器 HTTPS 协议的相关知识点有哪些?
20 0
|
3月前
|
缓存 前端开发
HTTP协议学习
HTTP协议学习
15 0