简体   繁体   中英

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

I am facing is issue in my rails 3.2.17 application. I have install rmagick 2.13.2 ImageMagick 6.7.7-10 in my ubuntu machine. I did locate libMagick and I found the below list:

$ locate libMagick /usr/lib/x86_64-linux-gnu/libMagickCore.a /usr/lib/x86_64-linux-gnu/libMagickCore.la /usr/lib/x86_64-linux-gnu/libMagickCore.so /usr/lib/x86_64-linux-gnu/libMagickCore.so.5 /usr/lib/x86_64-linux-gnu/libMagickCore.so.5.0.0 /usr/lib/x86_64-linux-gnu/libMagickWand.a /usr/lib/x86_64-linux-gnu/libMagickWand.la /usr/lib/x86_64-linux-gnu/libMagickWand.so /usr/lib/x86_64-linux-gnu/libMagickWand.so.5 /usr/lib/x86_64-linux-gnu/libMagickWand.so.5.0.0

RMagick2.so is depends on libMagickCore.so.4 , but you don't have it.

For workaround try this:

sudo ln -s /usr/lib/x86_64-linux-gnu/libMagickCore.so.5 /usr/lib/x86_64-linux-gnu/libMagickCore.so.4
sudo ln -s /usr/lib/x86_64-linux-gnu/libMagickWand.so.5 /usr/lib/x86_64-linux-gnu/libMagickWand.so.4
sudo ldconfig

If this does not work, probably, you need earlier version of ImageMagick.

Finally I could find the solution. Hope this may help others also. Actually "libmagickcore4" libs was missing. So install it using below command.

sudo apt-get install libmagickcore4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM