Friday, 11 December 2015

Installing apple swift language compiler on Fedora 22/Fedora 23/Centos 7/Redhat 7

Apple shook up the OSS world last week when it released the open source version of its swift language compiler stack for Mac OSX and Linux.

While they say "Linux" what they really mean is "Ubuntu Linux", as the binary builds provided are built against Ubuntu 14.10 or 15.02.

You can technically run these binaries on fedora but it requires a lot of hackery, symlinking missing library versions to others that are available in the f22 or 23 repos.

So I decided to see if it would be possible to build the swift compiler suite on fedora, and it turns out it is, with a few caveats.

I have put the script I used on github  ( https://github.com/thawkins/fedora-swift ) and encourage people to give it a try. Let me know about your experiences and if you create any fixes for any problems then please pass them back to me.

Right, I'm off to learn swift.... ohhh and get the swift mongodb driver I found up and working.




3 comments:

Kelvin C said...

I plan to try your script. Is there any problem if I switch from dnf back to yum?

Tim Hawkins said...

There should not be any major issues, i have found dnf and yum to be interchangabke in most cases.

Anonymous said...

I can recommend that this works well on Fedora 23. Any objects if I adapt this over to Linux Mint Debian Edition (since I also use that as well)?