This release is for Fedora 25 X86_64
Installing swift 3.0.2 on fc25
I like to put my distributions into a folder called ~/bin so that they
are out of the way
- Create a ~/bin folder if it does not already exist.
- Expand the tar file by doubleclick-ing it on the tar.gz file downloaded This will unpack the archive into a folder called after the name of the archive.
- Move the expanded folder to ~/bin.
- Symlink the name "swift" to that folder, this is so you can update to other versions just by changing the symlink, and rollback easily if it does not work out.
$cd ~/bin
$ln -s swift-3.0.2-RELEASE.02-08-17.08-02.fc25 swift
Now you should edit your ~/.bashrc file to add $HOME/bin/swift/usr/bin to your PATH.
- Test you got it right by using the REPL, the random function is a Linux Glib function so module loading is working.
$ swift
Welcome to Swift version 3.0.2 (swift-3.0.2-RELEASE). Type :help for assistance.
1> import Glibc
2> random()
$R0: Int = 1804289383
3>