Step 1. 下载
下载地址 官网
Step 2. 安装
双击安装包下载。
从Cygwin Mirror Sites选择国内镜像并添加,然后选择一个mirror进行安装:
安装 Devel -binutils、 gcc 、mingw 、gdb
Step 3. 使用
a5059726@RECH-0054891 /cygdrive/c
$ cygcheck -c cygwin
Cygwin Package Information
Package Version Status
cygwin 3.4.6-1 OK
Step 4. 配置 将以下目录添加到环境变量:
C:\cygwin64\bin
C:\cygwin64\sbin
a5059726@RECH-0054891 /cygdrive/c
$ gcc --version
gcc (GCC) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
a5059726@RECH-0054891 /cygdrive/c
$ make --version
GNU Make 4.4
Built for x86_64-pc-cygwin
Copyright (C) 1988-2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
参考: