Skip to content

Swift on Ubuntu

Robert Mißbach edited this page Oct 8, 2016 · 1 revision

If you want to build and run Swift on Ubuntu you have to make sure that Swift is installed on your Ubuntu machine. When I used the official Ubuntu version of Swift from swift.org I got some errors when I wanted to build the Ghost project. However, installing Swift with the following command worked fine for me and I could build and run the Vapor project without any problems:

curl -sL swift.vapor.sh/ubuntu | bash

When Swift is installed you can build and run your project with the following commands:

$ swift build

$ .build/debug/App

Clone this wiki locally