/usr/bin/convert.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
I was trying to use the ImageMagick in cygwin to create a jpeg file; however, the execution ended up with the error:
$ convert -size 94×54 xc:white lh.jpg
/usr/bin/convert.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
It seems like some DLL file(s) were missing. To figure that out,
$ cygcheck convert
Found: .\convert.exe
Found: C:\cygwin\bin\convert.exe
Found: C:\cygwin\bin\convert.exe
Found: C:\WINDOWS\system32\convert.exe
Found: C:\cygwin\bin\convert.exe
.\convert.exe
.\cygMagickCore-5.dll
.\cyggcc_s-1.dll
.\cygwin1.dll
C:\WINDOWS\system32\KERNEL32.dll
C:\WINDOWS\system32\ntdll.dll
.\cyggomp-1.dll
.\cygautotrace-3.dll
.\cygming-1.dll
.\cygfreetype-6.dll
.\cygbz2-1.dll
.\cygz.dll
.\cyggif-4.dll
.\cygX11-6.dll
.\cygxcb-1.dll
.\cygXau-6.dll
.\cygXdmcp-6.dll
.\cygpng15-15.dll
.\cygpstoedit-0.dll
.\cygstdc++-6.dll
.\cyggd-2.dll
.\cygfontconfig-1.dll
.\cygexpat-1.dll
.\cygjpeg-8.dll
.\cygXpm-4.dll
.\cygcairo-2.dll
.\cygpixman-1-0.dll
.\cygxcb-render-0.dll
.\cygxcb-shm-0.dll
.\cygXext-6.dll
.\cygXrender-1.dll
.\cygfftw3-3.dll
.\cygfpx-1.dll
.\cygglib-2.0-0.dll
.\cygiconv-2.dll
.\cygintl-8.dll
.\cygpcre-1.dll
.\cyggobject-2.0-0.dll
.\cygffi-6.dll
.\cyggs-9.dll
.\cygidn-11.dll
.\cyglcms2-2.dll
.\cygpaper-1.dll
.\cygtiff-5.dll
.\cygjbig-2.dll
.\cygXt-6.dll
.\cygICE-6.dll
.\cygSM-6.dll
.\cyguuid-1.dll
.\cygjasper-1.dll
.\cygltdl-7.dll
.\cyglzma-5.dll
.\cygpango-1.0-0.dll
.\cyggmodule-2.0-0.dll
.\cygthai-0.dll
.\cygdatrie-1.dll
.\cygpangocairo-1.0-0.dll
.\cygpangoft2-1.0-0.dll
.\cygharfbuzz-0.dll
.\cyggraphite2-3.dll
.\cygicule48.dll
.\cygicuuc48.dll
.\cygicudata48.dll
.\cygrsvg-2-2.dll
.\cygcroco-0.6-3.dll
.\cygxml2-2.dll
.\cyggdk_pixbuf-2.0-0.dll
.\cyggio-2.0-0.dll
C:\WINDOWS\system32\ADVAPI32.DLL
C:\WINDOWS\system32\RPCRT4.dll
C:\WINDOWS\system32\Secur32.dll
C:\WINDOWS\system32\GDI32.dll
C:\WINDOWS\system32\USER32.dll
.\cygMagickWand-5.dll
cygcheck: track_down: could not find cygpng14-14.dll
Installing “linpng: PNG library (docs and demos)” solved the issue. (I had to reboot the machine.)