Can't execute git push / pull on Cygwin: error while loading shared libraries
So I installed git in Cygwin and everything is fine except for everything related to the remote. When I try to either push or pull something, I get the following error:
/usr/libexec/git-core/git-remote-https.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
I also have git bash installed, but since this installation is not related to Cygwin, I had to use apt-cyg to get it to work in Cygwin. I can push / pull in git bash or in the GitHub GUI with no problem (they don't collide or whatever), but I'd really love to get the Cygwin version since I'm doing other things there annoyingly changing terminals all the time!
source to share
You can try the same Git operations without Cygwin using the latest Git for Windows (with its portable distribution PortableGit-2.4.5.1-4th-release-candidate-64-bit.7z.exe
: extract it anywhere)
It c:\path\to\PortableGit-2.4.5.1-4th-release-candidate-64-bit\git-bash.exe
is called by fairly recent bash and has most of the Linux command that the Cygwin shell has, allowing you to stay in that shell.
source to share
I had the same problem. The reason was included in a nonexistent path in an environment variable $PATH
. Checking out the git binary with cygcheck
I was getting the following output:
$ cygcheck 'C:/cygwin64/usr/libexec/git-core/git-remote-https.exe'
C:\cygwin64\usr\libexec\git-core\git-remote-https.exe
C:\WINDOWS\system32\KERNEL32.dll
C:\WINDOWS\system32\ntdll.dll
C:\WINDOWS\system32\KERNELBASE.dll
cygcheck: WARNING: PATH is not set
cygcheck: track_down: could not find cygcurl-4.dll
cygcheck: track_down: could not find cygwin1.dll
cygcheck: track_down: could not find cygiconv-2.dll
cygcheck: track_down: could not find cygintl-8.dll
cygcheck: track_down: could not find cygpcre-1.dll
cygcheck: track_down: could not find cygz.dll
Removing the wrong part from it $PATH
solved the problem.
source to share