本文介绍了Rubygems 2.0.14在使用时不是线程安全的bunder安装消息 - RUBYGEMS VERSION:2.4.5.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Rubygems 2.0.14不是线程安全的,所以你的宝石将会一次安装一个。升级到Rubygems 2.1.0或更高版本以启用并行gem安装。
这很奇怪,因为在我的RubyGems环境中它说我的RubyGems版本是2.4.5.1(见下文)
〜/ w / Rafftopia❯❯❯gem env
RubyGems环境:
- RUBYGEMS版本: 2.4.5.1
- RUBY VERSION:2.2.5(2016-04-26 patchlevel 319)[x86_64-darwin14]
- 安装目录:/Users/phillipjones/.gem/ruby/2.2.5
- RUBY EXECUTABLE:/Users/phillipjones/.rubies/ruby-2.2.5/bin/ruby
- 可执行目录:/Users/phillipjones/.gem/ruby/2.2.5/bin
- SPEC CACHE DIRECTORY:/Users/phillipjones/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY:/Users/phillipjones/.rubies/ruby-2.2.5/etc
- RUBYGEMS平台:
- ruby
- x86_64-darwin-14
解决方案
run sudo gem update --system
参考:
When running the bundle install I get the following message:
Rubygems 2.0.14 is not threadsafe, so your gems will be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation.
Which is strange because in my RubyGems Environment it says my RubyGems Version is: 2.4.5.1 (see below)
~/w/Rafftopia ❯❯❯ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.4.5.1
- RUBY VERSION: 2.2.5 (2016-04-26 patchlevel 319) [x86_64-darwin14]
- INSTALLATION DIRECTORY: /Users/phillipjones/.gem/ruby/2.2.5
- RUBY EXECUTABLE: /Users/phillipjones/.rubies/ruby-2.2.5/bin/ruby
- EXECUTABLE DIRECTORY: /Users/phillipjones/.gem/ruby/2.2.5/bin
- SPEC CACHE DIRECTORY: /Users/phillipjones/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Users/phillipjones/.rubies/ruby-2.2.5/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-14
解决方案
run sudo gem update --system
reference: http://blog.rubygems.org/2017/03/16/2.6.11-released.html
这篇关于Rubygems 2.0.14在使用时不是线程安全的bunder安装消息 - RUBYGEMS VERSION:2.4.5.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!