I got a virtual server with Ubuntu 18.04 and followed the installation instruction on the Download page. Swift REPL works fine, I can also compile Swift code with
swiftc main.swift, for example. But when I run
swift build in a package folder (or anywhere else):
$ swift build error: toolchain is invalid: could not find the `swiftc` at expected path /home/pbouda/swift/usr/bin/swiftc
swiftc command is definitely in this location and I can use it to compile single files. I tried Swift 5.1 and 5.1.1. What could go wrong here? Can I debug this further somehow?