gpt4 book ai didi

ruby-on-rails - Ruby:不兼容的库版本

转载 作者:行者123 更新时间:2023-12-01 22:24:05 25 4
gpt4 key购买 nike

我正在学习 Ruby on Rails,所以我创建了我的第一个项目,但遇到了这个错误:

/Users/Anton/.rvm/gems/ruby-2.3.0/gems/debug_inspector-0.0.2/lib/debug_inspector.rb:6:in `require': incompatible library version - /Users/Anton/.rvm/gems/ruby-2.3.0/gems/debug_inspector-0.0.2/lib/debug_inspector.bundle (fatal)
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/debug_inspector-0.0.2/lib/debug_inspector.rb:6:in `<top (required)>'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/binding_of_caller-0.7.2/lib/binding_of_caller/mri2.rb:1:in `require'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/binding_of_caller-0.7.2/lib/binding_of_caller/mri2.rb:1:in `<top (required)>'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/binding_of_caller-0.7.2/lib/binding_of_caller.rb:9:in `require'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/binding_of_caller-0.7.2/lib/binding_of_caller.rb:9:in `<top (required)>'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/web-console-2.3.0/lib/web_console.rb:1:in `require'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/web-console-2.3.0/lib/web_console.rb:1:in `<top (required)>'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/web-console-2.3.0/lib/web-console.rb:1:in `require'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/web-console-2.3.0/lib/web-console.rb:1:in `<top (required)>'
from /Users/Anton/.rvm/gems/ruby-2.3.0@global/gems/bundler-1.12.5/lib/bundler/runtime.rb:86:in `require'
from /Users/Anton/.rvm/gems/ruby-2.3.0@global/gems/bundler-1.12.5/lib/bundler/runtime.rb:86:in `block (2 levels) in require'
from /Users/Anton/.rvm/gems/ruby-2.3.0@global/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `each'
from /Users/Anton/.rvm/gems/ruby-2.3.0@global/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `block in require'
from /Users/Anton/.rvm/gems/ruby-2.3.0@global/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `each'
from /Users/Anton/.rvm/gems/ruby-2.3.0@global/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `require'
from /Users/Anton/.rvm/gems/ruby-2.3.0@global/gems/bundler-1.12.5/lib/bundler.rb:102:in `require'
from /Users/Anton/Work/2-Work/s-art-main/config/application.rb:7:in `<top (required)>'
from /Users/Anton/.rvm/gems/ruby-2.3.0@global/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:78:in `require'
from /Users/Anton/.rvm/gems/ruby-2.3.0@global/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:78:in `block in server'
from /Users/Anton/.rvm/gems/ruby-2.3.0@global/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /Users/Anton/.rvm/gems/ruby-2.3.0@global/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `server'
from /Users/Anton/.rvm/gems/ruby-2.3.0@global/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Users/Anton/.rvm/gems/ruby-2.3.0@global/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
from /Users/Anton/Work/2-Work/s-art-main/bin/rails:9:in `require'
from /Users/Anton/Work/2-Work/s-art-main/bin/rails:9:in `<top (required)>'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/client/rails.rb:28:in `load'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/client/rails.rb:28:in `call'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/client/command.rb:7:in `call'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/client.rb:30:in `run'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/bin/spring:49:in `<top (required)>'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/binstub.rb:11:in `load'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/binstub.rb:11:in `<top (required)>'
from /Users/Anton/Work/2-Work/s-art-main/bin/spring:13:in `require'
from /Users/Anton/Work/2-Work/s-art-main/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'

你能帮帮我吗?我在谷歌上搜索了大量类似的错误,但仍未找到正确的答案。

Rails 4.2.6
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]

谢谢!

最佳答案

如果您看到与 .bundle 相关的错误,这通常是您的 gem 是针对某个已更新或删除的共享库版本编译的。

正常的解决方法是卸载并重新安装有问题的 gem。这会将它链接到您拥有的当前版本。

关于ruby-on-rails - Ruby:不兼容的库版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37579984/

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