4 ms·
Has anyone had good luck getting Swift running on Linux? Many versions ago, I had it working under Ubuntu, and it seemed really nice. I particularly liked hav
by xscott 7y ago
Has anyone had good luck getting Swift running on Linux? Many versions ago, I had it working under Ubuntu, and it seemed really nice. I particularly liked having a REPL for this style of language.
However since then, I've had very limited success under Ubuntu, CentOS, and Arch. Different failures on each. Every few releases or so I give it a go, but something always fails and I go back to working on some other pet project.
- saagarjha 7y agoAre the prebuilt toolchains (https://swift.org/download/ https://swift.org/download/) giving you trouble?
- xscott 7y agoI'm currently using Arch, so I don't think the prebuilt Ubuntu ones are going to work.
- resist_futility 7y agoMaybe just use the Docker builds?
- xscott 7y agoI know I'm out of fashion :-), but I don't really use containers for anything. I think Swift looks really nice, but when I check out other languages (such as Go, Rust, or any of the gazillion others), I don't have to jump through any hoops other than using the system package manager or something like "./configure; make install". I wish Swift was in this camp.
- pcr910303 7y ago> I don't have to jump through any hoops other than using the system package manager Wouldn't that be something the package manager should include? If you're using Arch, I'm pretty sure AUR have you covered... [0] [0] https://aur.archlinux.org/packages/swift/ https://aur.archlinux.org/packages/swift/
- xscott 7y agoThe last time I tried, it didn't go well. When the AUR package for swift or swift-bin goes to 5.2, I'll probably try again. > If you're using Arch, I'm pretty sure AUR have you covered... Have you gotten it working with Arch? There are user comments on the page you linked indicating other people have had problems too.
- pjmlp 7y agoThe Ubuntu ones are well known for having linker issues on LTS distributions.