Solución al problema de "usar versiones incompatibles de la DLL cygwin" informada cuando se

problema

src>go get -u -v github.com/gorilla/websocket
github.com/gorilla/websocket (download)
	  0 [main] sh (6776) C:\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0xB26410/0x
BB6410.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
	  1 [main] sh 5452 fork: child -1 - forked process 6776 died unexpectedly, retry 0, exit code 0xC0000005, errno 11
	  0 [main] sh (7968) C:\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0xB26410/0x
8D6410.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
1048144 [main] sh 5452 fork: child -1 - forked process 7968 died unexpectedly, retry 0, exit code 0xC0000005, errno 11
	  0 [main] sh (7856) C:\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0xB26410/0x
B36410.
...
33691043 [main] sh 5452 fork: child -1 - forked process 4928 died unexpectedly, retry 0, exit code 0xC0000005, errno 11
/mingw32/libexec/git-core/git-sh-setup: fork: Resource temporarily unavailable
package github.com/gorilla/websocket: exit status 254

Instalar cygwin

(1) Descargue e instale el archivo de arranque setup-x86.exe desde el sitio web oficial www.cygwin.com/ (Mi Windows es de 32 bits, descarga de 64 bits setup-x64.exe)

(2) En la interfaz de selección de espejo, complete el espejo doméstico https://mirrors.aliyun.com/cygwin/ (o 163 espejo, la velocidad también es muy rápida)

(3) A continuación, hasta que se complete la instalación

Consejo: de hecho, el error anterior no tiene nada que ver con cygwin.

Prueba ir a buscar, el problema aún existe

src>go get -u -v github.com/gorilla/websocket
...

Resolver el problema

pista

Según https://stackoverflow.com/questions/12042363/cygwin-git-fork-error-on-pull , puede ser un problema con la versión de la herramienta Git (¿no coincide con la cadena de herramientas Go?)

Ver la versión de git

src>
src>git --version
git version 2.16.2.windows.1

Descargue la última versión del sitio web oficial

La dirección de descarga https://github.com/git-for-windows/git/releases/ La
última versión del sitio web oficial es solo hasta 2.20.0, 2.16.2 ya es muy nueva.
Pruébelo, descargue la última versión, instale

Ver la versión de git

src>git --version
it version 2.20.0.rc2.windows.1

Prueba, ve, pasa

src>
src>go get -u -v github.com/gorilla/websocket
github.com/gorilla/websocket (download)
github.com/gorilla/websocket
src>

Supongo que te gusta

Origin blog.csdn.net/hylaking/article/details/84880020
Recomendado
Clasificación