License Platform Language build Sponsor


Just download from release if any, or build it (and move it to PATH)

On linux

Some dependencies lib must be installed if not the static library

so if you have not already added the swiftlang repo:

curl -s | sudo bash

then you can install just the minimum package slim

sudo apt install swiftlang-slim

current depencies info

$ ldd plistconvert (0x00007ffe977fb000) => /usr/lib/swift/linux/ (0x00007fe95fcb7000) => /lib/x86_64-linux-gnu/ (0x00007fe95fb61000) => /lib/x86_64-linux-gnu/ (0x00007fe95fb3e000) => /lib/x86_64-linux-gnu/ (0x00007fe95fb39000) => /lib/x86_64-linux-gnu/ (0x00007fe95fb33000) => /usr/lib/swift/linux/ (0x00007fe95f28b000) => /usr/lib/swift/linux/ (0x00007fe95f259000) => /usr/lib/swift/linux/ (0x00007fe95f1f8000) => /usr/lib/swift/linux/ (0x00007fe95f1f3000) => /usr/lib/swift/linux/ (0x00007fe95f191000) => /usr/lib/swift/linux/ (0x00007fe95eb34000) => /lib/x86_64-linux-gnu/ (0x00007fe95e942000) => /lib/x86_64-linux-gnu/ (0x00007fe95e75e000) => /lib/x86_64-linux-gnu/ (0x00007fe95e743000)
	/lib64/ (0x00007fe95fded000) => /usr/lib/swift/linux/ (0x00007fe95e540000) => /usr/lib/swift/linux/ (0x00007fe95e226000) => /lib/x86_64-linux-gnu/ (0x00007fe95e21c000) => /usr/lib/swift/linux/ (0x00007fe95c769000)

$ du -sh /usr/lib/swift/
124M	/usr/lib/swift/


swift build -c release

or if we want without swift runtime dependencies (ie static executable)

swift build -c release -Xswiftc -static-executable

Install swift on linux

Download from

Swift official website

Download with apt on

curl -s | sudo bash

Then install the full swiftlang package to install swift command

sudo apt install swiftlang


View Github