gpt4 book ai didi

ruby-on-rails - 无法激活 concurrent-ruby-ext-1.1.3,因为 concurrent-ruby-1.1.4 与 concurrent-ruby (= 1.1.3) 冲突 (Gem::ConflictError)

转载 作者:太空宇宙 更新时间:2023-11-03 18:03:40 35 4
gpt4 key购买 nike

ruby 版本 2.5.3

当我输入 rails new upload_app 时,出现以下错误

错误如下

Traceback (most recent call last):
39: from /Users/zhangjiachen/.rvm/gems/ruby-2.5.3/bin/rails:23:in `<main>'
38: from /Users/zhangjiachen/.rvm/gems/ruby-2.5.3/bin/rails:23:in `load'
37: from /Users/zhangjiachen/.rvm/gems/ruby-2.5.3@global/gems/railties-5.2.2/exe/rails:10:in `<top (required)>'
36: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
35: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
34: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.2.2/lib/rails/cli.rb:12:in `<top (required)>'
33: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
32: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
31: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.2.2/lib/rails/command.rb:3:in `<top (required)>'
30: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
29: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
28: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support.rb:27:in `<top (required)>'
27: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
26: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
25: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies/autoload.rb:3:in `<top (required)>'
24: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
23: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
22: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/inflector/methods.rb:3:in `<top (required)>'
21: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
20: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
19: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/inflections.rb:3:in `<top (required)>'
18: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
17: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
16: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/inflector/inflections.rb:3:in `<top (required)>'
15: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
14: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
13: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/gems/2.5.0/gems/concurrent-ruby-1.1.4/lib/concurrent/map.rb:3:in `<top (required)>'
12: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
11: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
10: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/gems/2.5.0/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization.rb:5:in `<top (required)>'
9: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/gems/2.5.0/gems/concurrent-ruby-1.1.4/lib/concurrent/utility/native_extension_loader.rb:30:in `load_native_extensions'
8: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/gems/2.5.0/gems/concurrent-ruby-1.1.4/lib/concurrent/utility/native_extension_loader.rb:30:in `each'
7: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/gems/2.5.0/gems/concurrent-ruby-1.1.4/lib/concurrent/utility/native_extension_loader.rb:30:in `block in load_native_extensions'
6: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/gems/2.5.0/gems/concurrent-ruby-1.1.4/lib/concurrent/utility/native_extension_loader.rb:62:in `try_load_c_extension'
5: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:34:in `require'
4: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:123:in `rescue in require'
3: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems.rb:217:in `try_activate'
2: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems.rb:224:in `rescue in try_activate'
1: from /Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1441:in `activate'
/Users/zhangjiachen/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:2332:in `raise_if_conflicts': Unable to activate concurrent-ruby-ext-1.1.3, because concurrent-ruby-1.1.4 conflicts with concurrent-ruby (= 1.1.3) (Gem::ConflictError)

我试过一些东西

  1. gem list | grep并发=>
    并发 ruby (1.1.4、1.1.3、1.0.2)并发-ruby-ext (1.1.3)

  2. gem 卸载 concurrent-ruby-1.1.3=>未安装 Gem 'concurrent-ruby-1.1.3'

  3. gem 安装 concurrent-ruby-ext错误:找不到有效的 gem 'concurrent-ruby-ext' (>= 0),原因如下: 无法从 https://rubygems.org/ 下载数据- 没有这样的名字(https://rubygems.org/specs.4.8.gz)

最佳答案

我通过gem install concurrent-ruby-ext -v 1.1.5解决了这个问题

gem 'concurrent-ruby-ext' 与 gem 'concurrent-ruby' 的版本始终相同

可以引用 https://www.rubydoc.info/gems/concurrent-ruby-ext/1.1.5

gem list | grep concurrent
concurrent-ruby (1.1.5, 1.1.4, 1.1.3, 1.0.2)
concurrent-ruby-ext (1.1.5, 1.1.3)

关于ruby-on-rails - 无法激活 concurrent-ruby-ext-1.1.3,因为 concurrent-ruby-1.1.4 与 concurrent-ruby (= 1.1.3) 冲突 (Gem::ConflictError),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55116034/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com