Recently I upgraded Ubuntu to the 20.04 version. Unfortunately, after the upgrade, the problems with Imagemagick appeared.
$ magick
magick: error while loading shared libraries: libIlmImf-2_2.so.22: cannot open shared object file: No such file or directory
The same errors with libIlmImf is returned when use identify or convert command. As an inexperienced user of Ubuntu, I think I could mess something up with packages trying to solve it.
apt list --installed | grep magick
graphicsmagick/focal,now 1.4+really1.3.35-1 amd64 [installed,auto-removable]
imagemagick-6-common/focal-updates,focal-updates,focal-security,focal-security,now 8:6.9.10.23+dfsg-2.1ubuntu11.1 all [installed,automatic]
imagemagick-6.q16/focal-updates,focal-security,now 8:6.9.10.23+dfsg-2.1ubuntu11.1 amd64 [installed]
libgraphicsmagick-q16-3/focal,now 1.4+really1.3.35-1 amd64 [installed,auto-removable]
libmagickcore-6.q16-6-extra/focal-updates,focal-security,now 8:6.9.10.23+dfsg-2.1ubuntu11.1 amd64 [installed,automatic]
libmagickcore-6.q16-6/focal-updates,focal-security,now 8:6.9.10.23+dfsg-2.1ubuntu11.1 amd64 [installed,automatic]
libmagickwand-6.q16-6/focal-updates,focal-security,now 8:6.9.10.23+dfsg-2.1ubuntu11.1 amd64 [installed,automatic]
which magick
/usr/local/bin/magick
Grepping libIlmImf also returns different versions that are expected:
ls /usr/lib/x86_64-linux-gnu/ | grep libIlmImf
libIlmImf-2_3.so.24
libIlmImf-2_3.so.24.0.0
libIlmImf.a
libIlmImf.so
libIlmImfUtil-2_3.so.24
libIlmImfUtil-2_3.so.24.0.0
libIlmImfUtil.a
libIlmImfUtil.so
Does anyone encounter issues with Imagemagick after the upgrade? Do you have some suggestions that may help me?
libIlmImf
is one minor version newer than the one ImageMagick wants. I would make a backup first, then try uninstalling and reinstalling ImageMagick. If that doesn't help, you could try using the package manager to install v2.2 of Ilm and then reinstalling ImageMagick, or you could see if you get lucky by making a symlink in/usr/lib/x86_64-linux-gnu
withln -s libIlmImf-2_3.so.24 libIlmImf-2_2.so.22
Good luck!