- Hands-On Server-Side Web Development with Swift
- Angus Yeung
- 119字
- 2021-06-10 19:00:13
Installing the Swift Toolchain on Linux
The Swift 4 Toolchain is hosted on www.Swift.org and it contains the Swift compiler CLI, libraries, debugger, and package manager for Ubuntu platforms. Go to swift.org and download the latest stable Swift release for your Ubuntu version: https://swift.org/download/.
Go ahead and extract the .tar.gz file of Swift 4 toolchain. You'll need to update your PATH environment variable in order to include the Toolchain:
# Step 1a: Update PATH environment after installing Swift 4 toolchain
$ export PATH=<path to the extracted tool chain>/usr/bin:$PATH
Check that the expected version of Swift by entering the following Swift command:
# Step 1b: Check the installed version of Swift
$ swift --version
Next, go on installing Vapor and Kitura on your Ubuntu.