Ruby:LoadError不兼容的库版本

时间:2018-08-01 18:52:50

标签: ruby-on-rails ruby rubygems

当我尝试运行rails项目时,收到以下LoadError:

randomize

/Users/marko/WebDevSchool/hello_U_official_files/helloU/vendor/ruby/2.5.0/gems/bcrypt-3.1.11/lib/bcrypt.rb:16:在`require'中:不兼容的库版本-/ Users / marko / WebDevSchool / hello_U_official_files / helloU / vendor / ruby​​ / 2.5.0 / gems / bcrypt-3.1.11 / lib / bcrypt_ext.bundle(LoadError)

我尝试过:

  1. Traceback (most recent call last): 22: from bin/rails:4:in `<main>' 21: from bin/rails:4:in `require' 20: from /Users/marko/WebDevSchool/hello_U_official_files/helloU/vendor/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands.rb:18:in `<top (required)>' 19: from /Users/marko/WebDevSchool/hello_U_official_files/helloU/vendor/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command.rb:46:in `invoke' 18: from /Users/marko/WebDevSchool/hello_U_official_files/helloU/vendor/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command/base.rb:65:in `perform' 17: from /Users/marko/WebDevSchool/hello_U_official_files/helloU/vendor/ruby/2.5.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch' 16: from /Users/marko/WebDevSchool/hello_U_official_files/helloU/vendor/ruby/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command' 15: from /Users/marko/WebDevSchool/hello_U_official_files/helloU/vendor/ruby/2.5.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run' 14: from /Users/marko/WebDevSchool/hello_U_official_files/helloU/vendor/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:142:in `perform' 13: from /Users/marko/WebDevSchool/hello_U_official_files/helloU/vendor/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:142:in `tap' 12: from /Users/marko/WebDevSchool/hello_U_official_files/helloU/vendor/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:145:in `block in perform' 11: from /Users/marko/WebDevSchool/hello_U_official_files/helloU/vendor/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/server/server_command.rb:145:in `require' 10: from /Users/marko/WebDevSchool/hello_U_official_files/helloU/config/application.rb:8:in `<top (required)>' 9: from /Users/marko/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.3/lib/bundler.rb:114:in `require' 8: from /Users/marko/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.3/lib/bundler/runtime.rb:65:in `require' 7: from /Users/marko/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.3/lib/bundler/runtime.rb:65:in `each' 6: from /Users/marko/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.3/lib/bundler/runtime.rb:76:in `block in require' 5: from /Users/marko/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.3/lib/bundler/runtime.rb:76:in `each' 4: from /Users/marko/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.3/lib/bundler/runtime.rb:81:in `block (2 levels) in require' 3: from /Users/marko/.rvm/gems/ruby-2.5.1/gems/bundler-1.16.3/lib/bundler/runtime.rb:81:in `require' 2: from /Users/marko/WebDevSchool/hello_U_official_files/helloU/vendor/ruby/2.5.0/gems/bcrypt-3.1.11/lib/bcrypt.rb:12:in `<top (required)>' 1: from /Users/marko/WebDevSchool/hello_U_official_files/helloU/vendor/ruby/2.5.0/gems/bcrypt-3.1.11/lib/bcrypt.rb:16:in `rescue in <top (required)>'

  2. gem pristine --allgem uninstall bcrypt

  3. gem install bcryptgem uninstall railties

到目前为止什么都没做

0 个答案:

没有答案