rake aborted!
LoadError: linked to incompatible yU��.V - /home/anubha/.rvm/gems/ruby-2.7.2/gems/date-3.3.3/lib/date_core.so
<internal:/home/anubha/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/home/anubha/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/home/anubha/.rvm/gems/ruby-2.7.2/gems/date-3.3.3/lib/date.rb:4:in `<top (required)>'
<internal:/home/anubha/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/home/anubha/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/home/anubha/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/home/anubha/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/home/anubha/.rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.3/lib/active_support/messages/metadata.rb:3:in `<top (required)>'
<internal:/home/anubha/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/home/anubha/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/home/anubha/.rvm/gems/ruby-2.7.2/gems/activesupport-6.1.7.3/lib/active_support/message_verifier.rb:6:in `<top (required)>'
<internal:/home/anubha/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/home/anubha/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/home/anubha/.rvm/gems/ruby-2.7.2/gems/railties-6.1.7.3/lib/rails/application.rb:7:in `<top (required)>'
<internal:/home/anubha/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/home/anubha/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/home/anubha/.rvm/gems/ruby-2.7.2/gems/railties-6.1.7.3/lib/rails.rb:13:in `<top (required)>'
<internal:/home/anubha/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/home/anubha/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/home/anubha/.rvm/gems/ruby-2.7.2/gems/railties-6.1.7.3/lib/rails/all.rb:5:in `<top (required)>'
<internal:/home/anubha/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/home/anubha/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/home/anubha/staging/wel-admin/config/application.rb:3:in `<top (required)>'
/home/anubha/staging/wel-admin/Rakefile:4:in `require_relative'
/home/anubha/staging/wel-admin/Rakefile:4:in `<top (required)>'
/home/anubha/.rvm/gems/ruby-2.7.2/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/home/anubha/.rvm/gems/ruby-2.7.2/bin/ruby_executable_hooks:22:in `eval'
/home/anubha/.rvm/gems/ruby-2.7.2/bin/ruby_executable_hooks:22:in `<main>'
(See full trace by running task with --trace)
- Ruby版本3.2.2
- Rails版本6.1.6
当我运行命令“bundle exec rake db:migrate”时,出现了上面的错误:
1条答案
按热度按时间xe55xuns1#
正如我所看到的,Ruby版本、gem date版本和您正在使用的Rails版本之间存在不匹配。
尝试通过运行“bundle install”来更新您的gems。
如果这不起作用,请检查您正在使用的gem是否与您正在使用的rails版本兼容。