成功安装 MSYS2 后,运行pacman -Syu
出现以下错误:
:: Synchronizing package databases...
error: failed retrieving file 'mingw32.db' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'mingw32.db' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'mingw32.db' from www2.futureware.at : Could not resolve host: www2.futureware.at
error: failed to update mingw32 (download library error)
error: failed retrieving file 'mingw64.db' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'mingw64.db' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'mingw64.db' from www2.futureware.at : Could not resolve host: www2.futureware.at
error: failed to update mingw64 (download library error)
error: failed retrieving file 'msys.db' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'msys.db' from downloads.sourceforge.net : Could not resolve host: downloads.sourceforge.net
error: failed retrieving file 'msys.db' from www2.futureware.at : Could not resolve host: www2.futureware.at
error: failed to update msys (download library error)
error: failed to synchronize any databases
error: failed to init transaction (download library error)
如果我在浏览器地址栏中复制其中一个地址(例如 http://repo.msys2.org/),我就可以访问它。
如何修复这些错误?它是否取决于我公司的防火墙?有没有办法手动下载MSYS2软件包并从我的硬盘安装它们?
我需要的是开发工具,如GCC,Clang,调试器,链接器,库,...
平台:视窗 7。
我想这需要代理设置
请看一下 https://gist.github.com/roblogic/b401aa68d0a7c7c96095fa64a7c9f684
对于 Windows,请尝试安装 CNTLM 并配置代理服务器或与网络管理员联系。
http://cntlm.sourceforge.net/