Uninstall and reinstall mysql2
gem.
I had the same thing. Updated from Ubuntu 14 to 16 and saw this error.
To fix this, I just removed the mysql2
pearl and reinstalled it with bundler.
The reason is that he must install his own extensions when he installs a gem, and a big change in the system, for example, updating OS 1 or more versions, requires rebuilding these internal extensions.
Hope this helps.
source share