/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.)
Cygwin: nslookup/dig command error : “;; communications error: connection reset”
If you receive following error when execute nslookup or dig command:
;; communications error: connection reset
You have one option if it is for “dig” command. There are two options if it is for “nslookup” command.
For “dig” and “nslookup” command, setup /etc/resolv.conf
For “nslookup”, the another solution is to use “/cygdrive/c/WINDOWS/system32/nslookup.exe” instead of “/bin/nslookup.exe” without creating a resolv.conf entries
Cygwin: how to look up which package includes the command
This is really becoming our memo….
#will open a new window
When you need to lookup which packages to install to use certain commands/find files within the cygwin package, use the following submit form:
Cygwin: How to setup tftpd
Make sure you have setup inetd already.
create a root directory for tftpd:
$ mkdir /tftpboot
Edit /etc/inetd.conf
(before)
#tftp dgram udp wait nobody /usr/sbin/in.tftpd in.tftpd
(after)
tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd -s -p /tftpboot
# If you changed the root directory for tftpd, then the above line needs to be modified accordingly.
Restart cygwin inetd service:
$ net stop inetd $ net start inetd
Check if the tftpd is working
$ netstat -a | grep tftp UPD MyServer:tftp *:*
Cygwin: How to setup inetd
(You have to have administrative privileges.)
Make sure you have set system PATH to cygwin binary directory: “My Computer” (right click) –> “properties” –> “Advanced” tab –> “Environment Variables” button on the bottom right above the “OK” button.
Register your cygwin inetd service to Windows’ service:
$ /usr/sbin/inetd --install-as-service
(The dollar sign above is a prompt)
Then start the inetd service:
$ net start inetdor
$ cygrunsrv -S inetd