I am getting this error while starting unicorn porcess in 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'
May someone help me on this ?
I don't want to reinstall mysql2 gem to resolve this. Is there any other way to resolve this?
Regards, Vennila K
Aucun commentaire:
Enregistrer un commentaire