mrkd
3/31/2016 - 12:06 AM

swift-on-linux.md

  1. Install Vagrant

  2. vagrant up

  3. Vagrantfile

-- mode: ruby --

vi: set ft=ruby :

Vagrant.configure(2) do |config| config.vm.box = "ubuntu/trusty64"

config.ssh.pty = true

Enable provisioning with a shell script. Additional provisioners such as

Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the

documentation for more information about their specific syntax and use.

https://swift.org/builds/development/ubuntu1404/swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a/swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a-ubuntu14.04.tar.gz

config.vm.provision "shell", inline: <<-SHELL sudo apt-get update sudo apt-get install -y git clang libicu-dev

Set Swift snapshot version here:

SWIFT_SNAPSHOT_DIR="swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a" SWIFT_SNAPSHOT="swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a-ubuntu14.04" SWIFT_SNAPSHOT_FULL="$SWIFT_SNAPSHOT_DIR/$SWIFT_SNAPSHOT"

SWIFT_SNAPSHOT_BASE_URL="https://swift.org/builds/development/ubuntu1404/" SWIFT_SNAPSHOT_EXTENSION=".tar.gz" SWIFT_SNAPSHOT_FILE="$SWIFT_SNAPSHOT$SWIFT_SNAPSHOT_EXTENSION"

wget "$SWIFT_SNAPSHOT_BASE_URL$SWIFT_SNAPSHOT_FILE" tar xzvf $SWIFT_SNAPSHOT_FILE

echo $SWIFT_SNAPSHOT echo "export PATH=/home/vagrant/$SWIFT_SNAPSHOT/usr/bin:$PATH" >> ~/.profile

swift --version SHELL end


4. `wget https://swift.org/builds/development/ubuntu1404/swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a/swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a-ubuntu14.04.tar.gz`


[swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a-ubuntu14.04.tar.gz](https://swift.org/builds/development/ubuntu1404/swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a/swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a-ubuntu14.04.tar.gz)