Skip to content

Instantly share code, notes, and snippets.

@serhii-londar
Last active November 26, 2018 08:15
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save serhii-londar/28e3995886a47c2369b81b0b1dccb106 to your computer and use it in GitHub Desktop.
Save serhii-londar/28e3995886a47c2369b81b0b1dccb106 to your computer and use it in GitHub Desktop.
Install swift 4.1 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.1-release/ubuntu1604/swift-4.1-RELEASE/swift-4.1-RELEASE-ubuntu16.04.tar.gz
tar zxf swift-4.1*.tar.gz && rm -rf swift-4.1*.tar.gz
sudo mv swift-4.1* /swift-4.1
echo "export PATH=/swift-4.1/usr/bin:\"\${PATH}\"" >> ~/.bashrc
source ~/.bashrc
@UbuntuEvangelist
Copy link

is this work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment