2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Cygwin をセットアップ

Last updated at Posted at 2022-08-20

昔なつかし Cygwin.

image.png

今も同じように使えるのかな? 改めてインストール。

環境

  • Microsoft Windows 10 Pro 21H2

インストール日 2022/08/20

32bit? 64bit?

以前は 32bit しかなかったけれども、今は 64 bit を使うようになっているらしい。

You have been warned. If you're still sure you really need a 32 bit Cygwin, and there's absolutely no way around it, you may run the setup-x86.exe installer. The signature can be used to verify the validity of this binary.

インストール

https://cygwin.com/install.html からダウンロード。

image.png

image.png

image.png

image.png
image.png

image.png
image.png

動作確認

$ uname -a
CYGWIN_NT-10.0-19044 WinTest-PC 3.3.5-341.x86_64 2022-05-13 12:27 UTC x86_64 Cygwin

$ cygcheck -c cygwin
Cygwin Package Information
Package              Version        Status
cygwin               3.3.5-1        OK

apt-cyg を使えるようにする

apt-cyg は現在は以下のものが使えるようだ。
https://github.com/kou1okada/apt-cyg

以下のものに依存している

  • wget
  • ca-certificates
  • gnupg
  • libiconv

このうち、wget は初期状態で使える。他の3つを setup.exe を使ってインストールしておく。

https://github.com/kou1okada/apt-cyg#upgrade-apt-cyg
には以下のようにしてセットアップするように記述されている。

git clone https://github.com/kou1okada/apt-cyg.git
ln -s "$(realpath apt-cyg/apt-cyg)" /usr/local/bin/

git の代わりに以下のようにした。

$ wget https://raw.githubusercontent.com/kou1okada/apt-cyg/master/apt-cyg
$ chmod 755 apt-cyg
$ mv apt-cyg /usr/local/bin/

一度ミラーを国内に設定して覚え込ませます。

$ apt-cyg -m https://ftp.iij.ad.jp/pub/cygwin/ update

ミラーは以下から選びました。

開発環境をインストールする

$ apt-cyg install vim git

としてインストールに問題がなければ、build-essencial 相当の以下をインストールします。

  • gcc-core
  • gcc-g++
  • make
  • automake
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?