Скачал Swift for Ubuntu 18.04, https://swift.org/download/
Скопировал в /usr/local/ под Debian 9.4, не захламляя каталог /usr
$ tar zxf swift-4.2-RELEASE-ubuntu18.04.tar.gz
$ cd swift-4.2-RELEASE-ubuntu18.04/
$ ls -l usr/
итого 24
drwxr-xr-x 2 anonymous anonymous 4096 сен 13 02:23 bin
drwxr-xr-x 3 anonymous anonymous 4096 сен 13 02:22 include
drwxr-xr-x 6 anonymous anonymous 4096 сен 13 02:23 lib
drwxr-xr-x 3 anonymous anonymous 4096 сен 13 02:23 libexec
drwxr-xr-x 3 anonymous anonymous 4096 сен 13 02:23 local
drwxr-xr-x 4 anonymous anonymous 4096 сен 13 02:22 share
673 MBytes
$ mv * /usr/local/
Кто-нибудь пробовал? Не крэшится, нормально работает под дебиан?
$ swift
Welcome to Swift version 4.2 (swift-4.2-RELEASE). Type :help for assistance.
1> print("abc")
error: Couldn't lookup symbols:
swift_bridgeObjectRelease
Swift.print(_: Any..., separator: Swift.String, terminator: Swift.String) -> ()
Swift._allocateUninitializedArray<A>(Builtin.Word) -> (Swift.Array<A>, Builtin.RawPointer)
Swift.String.init(_builtinStringLiteral: Builtin.RawPointer, utf8CodeUnitCount: Builtin.Word, isASCII: Builtin.Int1) -> Swift.String
default argument 1 of Swift.print(_: Any..., separator: Swift.String, terminator: Swift.String) -> ()
default argument 2 of Swift.print(_: Any..., separator: Swift.String, terminator: Swift.String) -> ()
type metadata for Swift.String
swift_release
type metadata for Any
swift_retain
1> var a = 1
a: Int = 1
2> print(a)
error: Couldn't lookup symbols:
type metadata for Swift.Int
Swift.print(_: Any..., separator: Swift.String, terminator: Swift.String) -> ()
swift_beginAccess
Swift._allocateUninitializedArray<A>(Builtin.Word) -> (Swift.Array<A>, Builtin.RawPointer)
swift_endAccess
swift_bridgeObjectRelease
default argument 1 of Swift.print(_: Any..., separator: Swift.String, terminator: Swift.String) -> ()
default argument 2 of Swift.print(_: Any..., separator: Swift.String, terminator: Swift.String) -> ()
swift_release
type metadata for Any
swift_retain
2>
Или надо обязательно в каталог /usr/ кидать?
Почему в Apple не догадались опакетить компилятор (deb, rpm)?