According to Swift's official website it's supported platforms are:
- Ubuntu 14.04
- Ubuntu 16.04
- Ubuntu 16.10
Is there any way to install it on a machine running Ubuntu 17.10?
According to Swift's official website it's supported platforms are:
Is there any way to install it on a machine running Ubuntu 17.10?
When a prebuilt package is not available for the Swift language and libraries, an option is to build from source. This is currently the case for Ubuntu 17.04 and 17.10.
The Swift GitHub repository provides steps to build Swift from source code. The high-level build automation script
build-script
uses CMake and Ninja build tools.The basic steps can be summarized as
apt-get
install prerequisites, download the Swift source and then runbuild-script
.URLs are provided to contribute back and report bugs.
Use the search term "
17.10
" in the Swift bug reporter to find information on issues (both resolved and unresolved) that others have already looked at for a source-base installation of Swift on Ubuntu 17.10.On 17.10 this worked for me:
Update
This also works on ubuntu 18.04.
Some adjustment needed to the code above
Change:
to
or you will get an error - unless you are using ssh, in which case some other commands are missing.
Full Edit below: