If you’ve been using Cygwin for a while, particularly imageMagick functions such as convert, you may notice some breakages on updating your cygwin version. Errors such as:
convert: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
- it’s (Cygwin) telling you that there are some libraries missing. You’ll need to find out which ones and then run the setup/installer to fix it.
To Fix it, first use the cygwin utility ‘cygcheck’ to reveal the names of the missing DLLs. Since this post references the convert function of imageMagick, run the command:
to generate a list of the missing libraries/DLLs. For more information, you can check cygwin’s documentation site. If you’re having trouble with “montage” : then in cygwin run:
and it should list out for you the libraries that it cannot find, one such library had the word “gomp” in it. In the cygwin setup/installer, you’ll find the library just by putting in the last few letters (gomp) should find a match for you (or at least close enough) and click the checkbox to install the library. Another missing library was TIFF- related.
In my case, it was missing the exact same libraries as cygcheck convert. Once the install was complete, then the ‘convert’ function was back and running as expected.