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.
770 0
|
2月前
|
前端开发
webpack如何设置devServer启动项目为https协议
webpack如何设置devServer启动项目为https协议
605 0
|
29天前
|
安全 网络协议 网络安全
IP代理的三大协议:HTTP、HTTPS与SOCKS5的区别
**HTTP代理**适用于基本网页浏览,简单但不安全;**HTTPS代理**提供加密,适合保护隐私;**SOCKS5代理**灵活强大,支持TCP/UDP及认证,适用于绕过限制。选择代理协议应考虑安全、效率及匿名需求。
|
15天前
|
存储 安全 搜索推荐
HTTPS协议深度解析
【7月更文挑战第12天】HTTPS协议通过加密通信和身份验证机制,为数据传输提供了强有力的安全保障。在现代互联网环境中,HTTPS已成为保障网站和用户数据安全的重要手段。了解HTTPS的工作原理和安全性特性,有助于更好地应用和维护HTTPS,提升网络安全水平。
|
23天前
|
安全 算法 网络协议
HTTPS协议的详细讲解(四次握手)
HTTPS协议的详细讲解(四次握手)
|
1月前
|
安全 前端开发 中间件
中间件中HTTP/HTTPS 协议
【6月更文挑战第3天】
34 3
|
29天前
|
数据安全/隐私保护
数据防护之=HTTPS协议增加了<数据加密>
数据防护之=HTTPS协议增加了<数据加密>
|
1月前
|
机器学习/深度学习 安全 数据安全/隐私保护
【计算机网络】深度学习HTTPS协议
【计算机网络】深度学习HTTPS协议
32 0