Posts

Showing posts from March, 2016

Swift 2.x on Debian 8 (Jessie)

Swift 2.x on Linux (Debian Jessie) Swift is awesome. I've contributed to tutorials to demonstrate it's awesomeness. Now it's available on the server. https://swift.org/download/ https://swift.org/getting-started/#installing-swift  I prefer Debian for my production servers, but the official setup docs are for Ubuntu (which, thankfully is Debian based). Uses Ubuntu sources. cd /opt mkdir -p /opt/swift/build cd /opt/swift/build # download and unzip pre-built binaries wget https://swift.org/builds/swift-2.2-release/ubuntu1404/swift-2.2-RELEASE/swift-2.2-RELEASE-ubuntu14.04.tar.gz export PATH=/opt/swift/swift-2.2-RELEASE-ubuntu14.04/usr/bin:"${PATH}" tar zxvf build/swift-2.2-RELEASE-ubuntu14.04.tar.gz sudo apt-get update sudo apt-get install curl gcc sqlite3 \ git-core libffi-dev python-setuptools \ python-dev python-pip # run swift repl to test it out swift Welcome to Swift version 2.2 (swift-2.2-RELE