我想跑 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)
安装。
我的档案里有宝石 gem 'bcrypt', '~> 3.1.7'
我把它换成了 gem 'bcrypt', '~> 3.1.11'
但还是没用。
我使用ruby 2.4.2、rails 5.1.4、mysql 8.0.11运行这个项目。有什么办法让我 rails s
命令操作。
暂无答案!
目前还没有任何答案,快来回答吧!