After an OS upgrade you may find several gems broken, usually gems that rely OS dependent components(libraries, etc..)
If you’re using rvm/gemsets and bundler it’s pretty simple to reinstall all gems with their native extensions:
rvm gemset empty gemset-name
bundle install
If bundle install does not work – you may need to install bundler first:
gem i bundler