在RoR中启动独角兽操作时出现此错误。
I, [2018-10-12T07:37:00.285813 #32324] INFO -- : Refreshing Gem list
Bundler::GemRequireError: There was an error while trying to load the gem 'mysql2'.
Gem Load Error is: Incorrect MySQL client library version! This gem was compiled for 5.1.73 but the client library is 5.5.52-MariaDB.
Backtrace for gem load error is:
/var/www/api2/releases/api2-new/vendor/gems/ruby/2.1.0/gems/mysql2-0.3.15/lib/mysql2.rb:8:in `require'
/var/www/api2/releases/api2-new/vendor/gems/ruby/2.1.0/gems/mysql2-0.3.15/lib/mysql2.rb:8:in `<top (required)>'
/home/svitla/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.14.5/lib/bundler/runtime.rb:91:in `require'
/home/svitla/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.14.5/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
/home/svitla/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.14.5/lib/bundler/runtime.rb:86:in `each'
/home/svitla/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.14.5/lib/bundler/runtime.rb:86:in `block in require'
/home/svitla/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.14.5/lib/bundler/runtime.rb:75:in `each'
/home/svitla/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.14.5/lib/bundler/runtime.rb:75:in `require'
/home/svitla/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.14.5/lib/bundler.rb:107:in `require'
有人可以帮我吗?
我不想重新安装mysql2 gem来解决此问题。还有其他解决方法吗?
关于, Vennila K