Last Updated: February 25, 2016
·
1.467K
· debbora

libMagickCore.so.4: cannot open shared object file: No such file or directory

After update Ubuntu from 12.04 to 14.04, when the libs are reloaded or deleted, I lose some libraries.

Then when I tried to run a project that needed of the gem Rmagick, surprise: libMagickCore.so.4: cannot open shared object file: No such file or directory !!!!!

After search, and search and search, found a solution that worked for me:


  • sudo apt-get install imagemagick
  • sudo apt-get install libmagickcore-dev libmagickwand-dev

And finally

  • bundle exec gem pristine rmagick

Luck!