Wednesday, January 5, 2022

How To Install Swift Programming Language on Debian 11

Swift is a modern open source high-performing programming language with a focus on safety. It was developed by Apple and released in 2014.

apt 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 -y

wget https://download.swift.org/swift-5.5.1-release/ubuntu2004/swift-5.5.1-RELEASE/swift-5.5.1-RELEASE-ubuntu20.04.tar.gz
tar -xvzf swift-5.5.1-RELEASE-ubuntu20.04.tar.gz
mv swift-5.5.1-RELEASE-ubuntu20.04 /opt/swift
wget -q -O - https://swift.org/keys/all-keys.asc | sudo gpg --import -
echo "export PATH=/opt/swift/usr/bin:$PATH" >> ~/.bashrc
source ~/.bashrc
swift --version
___________________________________________________________________________________________

No comments:

Post a Comment