Skip to content

Instantly share code, notes, and snippets.

@unixc3t
Forked from serhii-londar/swift_4_1_ubuntu16_04.sh
Created November 21, 2017 15:06
Show Gist options
  • Save unixc3t/f696012da98ae3a02c48244bde74a6b5 to your computer and use it in GitHub Desktop.
Save unixc3t/f696012da98ae3a02c48244bde74a6b5 to your computer and use it in GitHub Desktop.
Install swift 4 on Ubuntu 16.04 bash script
#!/bin/bash
sudo apt-get install clang libicu-dev libcurl4-openssl-dev lldb git wget unzip -y
wget https://swift.org/builds/swift-4.0-release/ubuntu1604/swift-4.0-RELEASE/swift-4.0-RELEASE-ubuntu16.04.tar.gz
tar zxf swift-4.0*.tar.gz && rm -rf swift-4.0*.tar.gz
sudo mv swift-4.0* /swift-4.0
echo "export PATH=/swift-4.0/usr/bin:\"\${PATH}\"" >> ~/.bashrc
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment