error while loading shared libraries: libMagickCore-7.Q16HDRI.so.6
Solution 1
You may need to run this: ldconfig /usr/local/lib
Solution 2
Found that the LD_LIBRARY_PATH variable isn't being created by the installation of ImageMagick, so when I created it manually (on Linux Mint 19) -
LD_LIBRARY_PATH=/usr/local/lib
export $LD_LIBRARY_PATH
Then the ImageMagick commands work, without generating the error message - convert: error while loading shared libraries: libMagickCore-7.Q16HDRI.so.6: cannot open shared object file: No such file or directory
Solution 3
I also encountered this error when attempting to install ImageMagick 7.0.10 on Ubuntu 20.04 (using WSL on Windows 10).
Running this fixed my problem:
sudo ldconfig /usr/lib64
I found this folder by examining the deb:
dpkg -c imagemagick-libs_7.0.10-57_amd64.deb | grep libMagickCore-7.Q16HDRI.so.8
This showed:
lrwxrwxrwx root/root 0 2021-01-09 09:59 ./usr/lib64/libMagickCore-7.Q16HDRI.so.8 -> libMagickCore-7.Q16HDRI.so.8.0.0
Solution 4
I would suggest you find where the missing library is located:
sudo find /usr /opt / -type f -name libMagickCore-7.Q16HDRI.so.6
Then check your ldconfig
settings match in:
/etc/ld.so.conf
![Anuj TBE](https://i.stack.imgur.com/iL5FE.jpg?s=256&g=1)
Anuj TBE
I am a software engineer persuing B.Tech with Computer Science. Like to write and deploy softwares,programs and website/web programs for windows,android and many...
Updated on June 08, 2022Comments
-
Anuj TBE about 2 years
I have been trying to install
ImageMagick
inUbuntu 16.04
to use withmovie.py
I have installed
ImageMagick 7
but when I check the version from the command lineconvert --version
It gives error as
convert: error while loading shared libraries: libMagickCore-7.Q16HDRI.so.6: cannot open shared object file: No such file or directory
I also tried running
sudo ldconfig /user/local/lib
But, still getting same error.
Edit 2: How I installed
- Downloaded two
rpm
files from imagemagick.org -
run following commands to install in Ubuntu 16.04
sudo alien -i ImageMagick-libs-7.0.7-37.x86_64.rpm
sudo alien -i ImageMagick-7.0.7-37.x86_64.rpm
- Downloaded two