我正在尝试在我的项目上运行rails s
但是当我这样做时会弹出错误:
C:/ror/Ruby24-x64/lib/ruby/gems/2.4.0/gems/mysql2-0.4.10-x64-mingw32/lib/mysql2/2.4/mysql2.so: warning: constant ::TimeoutError is deprecated
rails aborted!
LoadError: cannot load such file -- bcrypt_ext
c:/ror/dev/AWI/config/application.rb:8:in `<top (required)>'
c:/ror/dev/AWI/Rakefile:5:in `require_relative'
c:/ror/dev/AWI/Rakefile:5:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Caused by:
LoadError: cannot load such file -- 2.4/bcrypt_ext
c:/ror/dev/AWI/config/application.rb:8:in `<top (required)>'
c:/ror/dev/AWI/Rakefile:5:in `require_relative'
c:/ror/dev/AWI/Rakefile:5:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
(See full trace by running task with --trace)
当我查看宝石列表时,我安装了bcrypt (3.1.12, 3.1.11 x64-mingw32)
。
我的Gemfile中有这个宝石gem 'bcrypt', '~> 3.1.7'
,我把它切换到gem 'bcrypt', '~> 3.1.11'
但仍无效。
我使用Ruby 2.4.2,Rails 5.1.4,mysql 8.0.11运行这个项目。关于如何让rails s
命令运行的任何想法。