Skip to content

Instantly share code, notes, and snippets.

@cmariod
Created August 31, 2016 06:47
Show Gist options
  • Save cmariod/fbc3c08d02f2df8e094a996861a6a80e to your computer and use it in GitHub Desktop.
Save cmariod/fbc3c08d02f2df8e094a996861a6a80e to your computer and use it in GitHub Desktop.
Installing swift on ubuntu

Installation

Based on Twilio Install guide

sudo apt-get update

wget https://swift.org/builds/ubuntu1404/swift-2.2-SNAPSHOT-2015-12-18-a/swift-2.2-SNAPSHOT-2015-12-18-a-ubuntu14.04.tar.gz

tar -zxvf swift-2.2-SNAPSHOT-2015-12-18-a-ubuntu14.04.tar.gz

echo "export PATH=/path/to/swift-2.2-SNAPSHOT-2015-12-18-a-ubuntu14.04/usr/bin/:\"${PATH}\""

sudo apt-get install git cmake ninja-build clang uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config

Usage

Standard import for ubuntu: import Foundation import Glibc

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