cannot open shared object file: No such file or directory
I’ve gotten this error after i’ve installed ImageMagick (from source) and RMagick (using gem) on my Debian system
libMagickCore.so.2: cannot open shared object file: No such file or directory – /usr/lib/ruby/gems/1.8/gems/rmagick-2.8.0/lib/RMagick2.so
To get rid of this error i executed
ldconfig /usr/local/lib



















Thank you!
Thanks for the tip!
Thanks, very useful tip!
Very, very useful!
You may want to add “–prefix=/usr” to “./configure” command, so that ImageMagick get installed in Debian default dirs.
You saved my life!!!!! Thank you!!!!
thanks, really useful!
Thanks. This helped me as well.
Awesome, thanks!
But, in my case ldconfig wasn’t in my path, so I had to run:
/sbin/ldconfig /usr/local/libthank you so, so much!!!
I was stuck in there.
Oh thank god! This is not the first error I’ve encountered installing image magick, but it was the easiest to fix thanks to you!
Thanks that helped a lot. Though I had to use:
sudo /sbin/ldconfig /usr/local/imagemagick/lib
because I set a custom prefix when installing imagemagick.
When i tried without sudo I had the following error:-
/sbin/ldconfig: Can’t create temporary cache file /etc/ld.so.cache~: Permission denied
Thanks
Exact solution to the issue. Thanks!