MSYS2-packages: ssh.exe: error while loading shared libraries: ?

Just installed msys2-x86_64-20180531 Installed openssh. First of all, libopenssl should be a dependency, ssh command was missing it.

After installing libopenssl too, I’m getting this error message:

$ ssh
C:/msys64/usr/bin/ssh.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory

See last line:

$ ldd /usr/bin/ssh
        ntdll.dll => /c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffd2dfc0000)
        KERNEL32.DLL => /c/WINDOWS/System32/KERNEL32.DLL (0x7ffd2ca50000)
        KERNELBASE.dll => /c/WINDOWS/System32/KERNELBASE.dll (0x7ffd2a7a0000)
        msys-crypto-1.1.dll => /usr/bin/msys-crypto-1.1.dll (0x58b980000)
        msys-gssapi-3.dll => /usr/bin/msys-gssapi-3.dll (0x4f53c0000)
        msys-z.dll => /usr/bin/msys-z.dll (0x522fe0000)
        msys-gcc_s-seh-1.dll => /usr/bin/msys-gcc_s-seh-1.dll (0x5e8160000)
        msys-heimntlm-0.dll => /usr/bin/msys-heimntlm-0.dll (0x5fe970000)
        msys-heimbase-1.dll => /usr/bin/msys-heimbase-1.dll (0x5889a0000)
        msys-2.0.dll => /usr/bin/msys-2.0.dll (0x180040000)
        msys-asn1-8.dll => /usr/bin/msys-asn1-8.dll (0x4901d0000)
        msys-roken-18.dll => /usr/bin/msys-roken-18.dll (0x5fe2a0000)
        msys-com_err-1.dll => /usr/bin/msys-com_err-1.dll (0x419420000)
        msys-krb5-26.dll => /usr/bin/msys-krb5-26.dll (0x4e6ec0000)
        ??? => ??? (0x2e20000)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 15 (5 by maintainers)

Most upvoted comments

Today I tried a clean install of MSYS2 and now I don’t even get the problem anymore so something upstream got fixed. But I can confirm that if I removed that dll and did the pacman -Syyu it did fix the problem for me.

I’ve done a clean install of MSYS2 and I have Windows Defender completely disabled and I still get the missing ? shared library.

Edit: I ran Sysinternals Process Monitor and the ? library that ssh.exe is looking for is called msys-crypto-1.1.dll. I ran pacman -Fy and no current packages contain this dll. I ended up getting if from here and now ssh works.