Windows Subsystem for Linux 2(WSL 2) Ubunt 20.04 LTSにSwitインストール
WSL 2+Ubunt 20.04 LTSにSwift
必要物インストール
1 2 | sudo apt-get update sudo apt-get install binutils git gnupg2 libc6-dev libcurl4 libedit2 libgcc-9-dev libpython2.7 libsqlite3-0 libstdc++-9-dev libxml2 libz3-dev pkg-config tzdata zlib1g-dev |
Swiftダウンロード
1 | wget https: //swift .org /builds/swift-5 .4.1-release /ubuntu2004/swift-5 .4.1-RELEASE /swift-5 .4.1-RELEASE-ubuntu20.04. tar .gz |
Swiftインストール
ダウンロードしたファイルを好きな場所で展開
パス追加
1 | export PATH= /path/to/Swift/usr/bin : "${PATH}" |