您的位置:首页 > 理论基础 > 计算机网络

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

2016-03-03 14:12 656 查看
[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 里,第一个
改成
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: