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.
767 0
|
1月前
|
前端开发
webpack如何设置devServer启动项目为https协议
webpack如何设置devServer启动项目为https协议
354 0
|
17天前
|
安全 前端开发 中间件
中间件中HTTP/HTTPS 协议
【6月更文挑战第3天】
16 3
|
1天前
|
机器学习/深度学习 安全 数据安全/隐私保护
【计算机网络】深度学习HTTPS协议
【计算机网络】深度学习HTTPS协议
5 0
|
3天前
|
监控 小程序 前端开发
基础入门-抓包技术&HTTPS协议&WEB&封包监听&网卡模式&APP&小程序
基础入门-抓包技术&HTTPS协议&WEB&封包监听&网卡模式&APP&小程序
|
24天前
|
存储 安全 前端开发
HTTP 协议 与HTTPS
HTTP 协议 与HTTPS
|
1月前
|
存储 算法 安全
[计算机网络]---Https协议
[计算机网络]---Https协议
|
30天前
|
JSON 安全 网络协议
【Linux 网络】网络基础(二)(应用层协议:HTTP、HTTPS)-- 详解
【Linux 网络】网络基础(二)(应用层协议:HTTP、HTTPS)-- 详解