tyron's page 不断探索是一件好事,学无止境!

安装Cygwin

2023-02-15
David


Step 1. 下载

下载地址 官网

Step 2. 安装

双击安装包下载。

Select Proxy

Cygwin Mirror Sites选择国内镜像并添加,然后选择一个mirror进行安装: Add Mirror

安装 Devel -binutils、 gcc 、mingw 、gdb Select Package-Devel

Select Package-Devel-binutils

Select Package-Devel-gcc

Select Package-Devel-gdb

Select Package-Devel-make

Select Package-Devel-mingw

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.

参考:

  1. Cygwin安装教程
  2. Cygwin Mirror Sites

下一篇 GMSL and GMSL2

Comments

Content