C语言 是否有离线 MinGW 安装程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29028808/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there an offline MinGW installer?
提问by Switch
I am learning C and I want to install MinGW on my laptop. The MinGW installer is a web-installer, it requires the computer to have access to the internet when installing. But the problem is that my computer's not connected to the internet. So it can't be installed.
我正在学习 C,我想在我的笔记本电脑上安装 MinGW。MinGW 安装程序是一个网络安装程序,安装时需要计算机能够访问互联网。但问题是我的电脑没有连接到互联网。所以无法安装。
So I am thinking of downloading the complete offline installer on my smart-phone and transfering it to my PC through blue-tooth.
所以我想在我的智能手机上下载完整的离线安装程序,然后通过蓝牙将它传输到我的 PC 上。
I have already tried TDM-GCC, but even that requires me to download somthing.
我已经尝试过 TDM-GCC,但即使这样也需要我下载一些东西。
So is there an offline installer to MinGW? If yes where can I get it?
那么MinGW有离线安装程序吗?如果是,我在哪里可以得到它?
采纳答案by Switch
I did not find an offline installer for MinGW,but instead I found a better Windows port; which is MinGW-W64
我没有找到 MinGW 的离线安装程序,而是找到了一个更好的 Windows 端口;这是MinGW-W64
From http://mingw-w64.yaxm.org/doku.php:
来自http://mingw-w64.yaxm.org/doku.php:
Mingw-w64 is an advancement of the original mingw.org project, created to support the GCC compiler on Windows systems. It has forked it in 2007 in order to provide support for 64 bits and new APIs. It has since then gained widespread use and distribution.
Mingw-w64 是原始 mingw.org 项目的改进版,旨在支持 Windows 系统上的 GCC 编译器。它在 2007 年对它进行了分叉,以提供对 64 位和新 API 的支持。从那时起,它得到了广泛的使用和分发。
Now to answer this question: it has to be mannually installed by downloading the zip file. It won't require additional download.
现在回答这个问题:它必须通过下载 zip 文件手动安装。它不需要额外的下载。
回答by Ashiq Khan
You can download it from link : https://github.com/jonasstrandstedt/MinGWYou need to extract the MinGW folder in C:\ eg: c:\MinGW . Then what you need to follow the steps given in the link above. In CodeBlock IDE go to settings>compiler>Tochain Executables. There you need to click on auto detect or specify the folder manually.
您可以从以下链接下载它:https: //github.com/jonasstrandstedt/MinGW您需要在 C:\ 中解压缩 MinGW 文件夹,例如: c:\MinGW 。然后您需要按照上面链接中给出的步骤进行操作。在 CodeBlock IDE 中,转到设置>编译器>Tochain Executables。在那里您需要单击自动检测或手动指定文件夹。
回答by AaronDanielson
The most direct answer to the question "Is there an offline MinGW installer?" is "maybe, but it would be a snapshot from the past, and it's almost certainly not up-to-date with the latest available released versions." The individual packages are made available (almost) as soon as they're released, so capturing everything in a self-contained installer is a moving target.
对“是否有离线 MinGW 安装程序?”这个问题最直接的回答是“也许,但这将是过去的快照,而且几乎可以肯定它不是最新的可用发布版本。”个人软件包一发布就(几乎)可用,因此在独立安装程序中捕获所有内容是一个移动目标。
But, you can use the standard installer offline with a bit of prep work if you use MSYS2's pacman, which manages dependencies and grabs all the right versions for you.
但是,如果您使用 MSYS2 的pacman.
The details are given in an answer to another question(https://stackoverflow.com/a/46791235/).

