My programming ramblings

Getting started with Swift 3 on Linux

Posted on November 8, 2016 by Paul

In this article, I will show you how to install and use Swift 3 on Linux. Swift is officially tested and supported on Ubuntu Linux. I will assume that you have Ubuntu 16.04 installed on your server or on your local computer.

First, make sure that you have an up to date system:

1 sudo apt update2 sudo apt upgrade

Next, install Clang which is required if you want to be able to use the Swift compiler:

1 sudo apt install clang libicu-dev

You can download the official Swift binary for Ubuntu 16.04 from swift.org. Chose the latest stable release (currently this is version 3.0.1). If you see a new version of Swift, update the URL from the next instructions accordingly:

Disclaimer:All data and information provided on this site is for informational purposes only. solarianprogrammer.com makes no representations as to accuracy, completeness, currentness, suitability, or validity of any information on this site and will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its display or use. All information is provided on an as-is basis. solarianprogrammer.com does not collect any personal information about its visitors except that which they provide voluntarily when leaving comments. This information will never be disclosed to any third party for any purpose. Some of the links contained within this site have my referral id, which provides me with a small commission for each sale. Thank you for understanding.