I have a son of Debian so i tried sudo apt install swift-lang but i have this error E: Unable to locate package swift-lang so i don't know how can i solve... :-/
The list of dependencies for Ubuntu are listed at Swift.org - Download Swift. In particular, installing libedit2 should include the dependency libtinfo5, which is what you're seeing the error about.
Hi thanks for reply, i have installed it correctly libedit2 is already the newest version (3.1-20170329-1). and libtinfo5 is already the newest version (6.1-1ubuntu1.18.04). but when i try to follow your linked guide at the end i have the same problem, so swift: error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory
I really don't know how can i solve :-/
However i'm trying do download the last version of swift (5...) that is really new and i thing that some libraries isn't updated... for you can be a solution install an old version?