Install Swift for Linux

Kitura is tested on Ubuntu 14.04 LTS (trusty), 16.04 LTS (xenial) and 18.04 LTS (bionic).

First ensure your source list is up to date by running the following:

sudo apt-get update

Next install the required Linux system packages:

sudo apt-get install clang libicu-dev libcurl4-openssl-dev libssl-dev libpython2.7

Download Swift for the platform you're using.

You can then extract files to system root.

If you choose a directory other than the system root, you will need to run the following:

export PATH=/<path to Swift>/usr/bin:"${PATH}"

Where <path to Swift> is the path to your Swift binary.

You can verify Swift has been installed successfully by running:

swift --version

You should see something similar like this:

Swift version x.x.x

Next steps

Hello World: Create a simple "Hello World" Kitura server.

Create a Server: Create a Kitura server with scaffolding for a full application.

Back to top