Builds now failing with no such file error (mysql2.so)

My builds are now failing for some reason. Even builds that passed previously now fail if I rebuild them. I think it must be a change in the image I’m using. I’m all of the sudden getting this error:

LoadError: libmariadbclient.so.18: cannot open shared object file: No such file or directory - /home/circleci/repo/vendor/bundle/ruby/2.5.0/gems/mysql2-0.5.2/lib/mysql2/mysql2.so

The image is circleci/ruby:2.5.5-node-browsers and I’m using circleci/mariadb:5.5.64 for the db image.

Rebuilding without cache fixed the issue.

Running into this issue as well. Rebuilding without cache didn’t solve it, uninstalling and reinstalling the mysql2 gem also didn’t solve it.

Using docker container circleci/ruby:2.2.7-jessie-node