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/I prefer Debian for my production servers, but the official setup docs are for Ubuntu (which, thankfully is Debian based).
https://swift.org/getting-started/#installing-swift
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-RELEASE). Type :help for assistance.
1> 1 + 1
$R0: Int = 2
This is not an optimized set of instructions, but gets you Swift on Debian.
References:
http://docs.openstack.org/developer/swift/development_saio.html
https://github.com/qutheory/vapor
https://www.raywenderlich.com/122189/introduction-to-open-source-swift-on-linux
Comments