libffi.so.6: cannot open shared object file in rails

Ubuntu 20.04 upgraded libffi6 to libffi7 but your Rails apps are still looking for libffi6.
You need to run the following command:

gem pristine ffi

This should fix it

Leave a Comment