计算机离线时启动 MSYS2 MinGW 64 非常慢 [英] Launching MSYS2 MinGW 64 is very slow when the computer is offline
问题描述
当电脑没有联网时,启动MinGW 64(MSYS2)控制台需要一分钟以上(而且用gcc编译也变得很慢).我的计算机(Windows 7 专业版)未加入任何 Active Directory.当计算机连接到 Internet 时,一切正常.
When the computer is not connected to the Internet, launching the MinGW 64 (MSYS2) console requires more than one minute (and also compiling with gcc becomes very slow). My computer (windows 7 pro) is not joined to any Active Directory. When the computer is connected to the Internet, everything is fine.
是什么原因?有办法解决吗?
What is the reason? Is There a way to fix it?
推荐答案
我发现文件 C:\windows\system32\drivers\etc\hosts 在标准 127.0.0.1 localhost之前有一个奇怪的条目代码>条目:
I found that the file C:\windows\system32\drivers\etc\hosts had an odd entry before the standard 127.0.0.1 localhost
entry:
127.0.0.1 mytest
127.0.0.1 localhost
删除第一个(或将127.0.0.1 localhost
放在第一位)解决了问题.
Deleting the first (or placing the 127.0.0.1 localhost
first) solved the problem.
这篇关于计算机离线时启动 MSYS2 MinGW 64 非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!