Rails无法运行:`require':不兼容的库版本

时间:2016-05-27 04:59:16

标签: ruby-on-rails ruby rvm

我使用rvm进行ruby版本管理, 但是当我执行“轨道”时,导轨无法运行 我重新安装了rvm,我还重新安装了宝石问题 我很绝望,需要你的帮助! 控制台日志: /Users/brucewzp/.rvm/gems/ruby-2.3.0/gems/mysql2-0.3.21/lib/mysql2.rb:31:in `require': incompatible library version - /Users/brucewzp/.rvm/gems/ruby-2.3.0/gems/mysql2-0.3.21/lib/mysql2/mysql2.bundle (fatal) from /Users/brucewzp/.rvm/gems/ruby-2.3.0/gems/mysql2-0.3.21/lib/mysql2.rb:31:in `<top (required)>' from /Users/brucewzp/.rvm/gems/ruby-2.3.0@global/gems/bundler-1.12.5/lib/bundler/runtime.rb:86:in `require' from /Users/brucewzp/.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/brucewzp/.rvm/gems/ruby-2.3.0@global/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `each' from /Users/brucewzp/.rvm/gems/ruby-2.3.0@global/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `block in require' from /Users/brucewzp/.rvm/gems/ruby-2.3.0@global/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `each' from /Users/brucewzp/.rvm/gems/ruby-2.3.0@global/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `require' from /Users/brucewzp/.rvm/gems/ruby-2.3.0@global/gems/bundler-1.12.5/lib/bundler.rb:102:in `require' from /Users/brucewzp/develop/rubydev/lofi/config/application.rb:7:in `<top (required)>' from /Users/brucewzp/.rvm/gems/ruby-2.3.0@global/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:78:in `require' from /Users/brucewzp/.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/brucewzp/.rvm/gems/ruby-2.3.0@global/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `tap' from /Users/brucewzp/.rvm/gems/ruby-2.3.0@global/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `server' from /Users/brucewzp/.rvm/gems/ruby-2.3.0@global/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!' from /Users/brucewzp/.rvm/gems/ruby-2.3.0@global/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>' from /Users/brucewzp/develop/rubydev/lofi/bin/rails:9:in `require' from /Users/brucewzp/develop/rubydev/lofi/bin/rails:9:in `<top (required)>' from /Users/brucewzp/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/client/rails.rb:28:in `load' from /Users/brucewzp/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/client/rails.rb:28:in `call' from /Users/brucewzp/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/client/command.rb:7:in `call' from /Users/brucewzp/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/client.rb:30:in `run' from /Users/brucewzp/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/bin/spring:49:in `<top (required)>' from /Users/brucewzp/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/binstub.rb:11:in `load' from /Users/brucewzp/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/binstub.rb:11:in `<top (required)>' from /Users/brucewzp/develop/rubydev/lofi/bin/spring:13:in `require' from /Users/brucewzp/develop/rubydev/lofi/bin/spring:13:in `<top (required)>' from bin/rails:3:in `load' from bin/rails:3:in `<main>'

1 个答案:

答案 0 :(得分:1)

您可以尝试: 宝石原始 - 所有