当我尝试
时,我面临以下错误 run rake db:migrate
日志:
rake aborted!
LoadError: incompatible library version - /home/ubuntu/.rvm/gems/ruby-2.3.1/gems/nokogiri-1.8.0/lib/nokogiri/nokogiri.so
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/nokogiri-1.8.0/lib/nokogiri.rb:32:in `require'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/nokogiri-1.8.0/lib/nokogiri.rb:32:in `rescue in <top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/nokogiri-1.8.0/lib/nokogiri.rb:28:in `<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/roadie-3.2.2/lib/roadie/inliner.rb:2:in `require'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/roadie-3.2.2/lib/roadie/inliner.rb:2:in `<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/roadie-3.2.2/lib/roadie.rb:29:in `require'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/roadie-3.2.2/lib/roadie.rb:29:in `<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/roadie-rails-1.2.1/lib/roadie/rails.rb:6:in `require'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/roadie-rails-1.2.1/lib/roadie/rails.rb:6:in `<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/roadie-rails-1.2.1/lib/roadie-rails.rb:1:in `require'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/roadie-rails-1.2.1/lib/roadie-rails.rb:1:in `<top (required)>'
/home/ubuntu/fs_finance/config/application.rb:5:in `<top (required)>'
/home/ubuntu/fs_finance/Rakefile:5:in `<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
LoadError: cannot load such file -- nokogiri/2.3/nokogiri
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/nokogiri-1.8.0/lib/nokogiri.rb:30:in `require'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/nokogiri-1.8.0/lib/nokogiri.rb:30:in `<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/roadie-3.2.2/lib/roadie/inliner.rb:2:in `require'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/roadie-3.2.2/lib/roadie/inliner.rb:2:in `<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/roadie-3.2.2/lib/roadie.rb:29:in `require'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/roadie-3.2.2/lib/roadie.rb:29:in `<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/roadie-rails-1.2.1/lib/roadie/rails.rb:6:in `require'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/roadie-rails-1.2.1/lib/roadie/rails.rb:6:in `<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/roadie-rails-1.2.1/lib/roadie-rails.rb:1:in `require'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/roadie-rails-1.2.1/lib/roadie-rails.rb:1:in `<top (required)>'
/home/ubuntu/fs_finance/config/application.rb:5:in `<top (required)>'
/home/ubuntu/fs_finance/Rakefile:5:in `<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
(See full trace by running task with --trace)
答案 0 :(得分:1)
请检查您的宝石版本并运行
gem pristine --all