Created
November 10, 2016 12:47
-
-
Save jay18001/3678f8e9ba8859f443a8785340a99fb9 to your computer and use it in GitHub Desktop.
Installing Swift on raspberry pi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://swift-arm.ddns.net/job/Swift-3.0-ARMv7-ubuntu1410/29/artifact/swift-3.0-2016-11-03-armv7-ubuntu14.04.tar.gz | |
mkdir swift-3.0 | |
cd swift-3.0 && tar -xzf ../swift-3.0-2016-10-21-RPi23-ubuntu16.04.tar.gz | |
export PATH=$HOME/swift-3.0/usr/bin:$PATH | |
sudo nano /etc/apt/sources.list | |
#uncomment this line | |
deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi | |
sudo apt-get update | |
sudo apt-get install git cmake ninja-build clang uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config autoconf libtool syool systemtap-sdt-dev libcurl4-openssl-dev gcc-4.8 g++-4.8 | |
sudo apt-get install -y clang-3.6 | |
sudo apt-get install -y libicu-dev | |
sudo apt-get install libstdc++6-4.7-dev | |
nano test.swift | |
#Type | |
print("Hello World") | |
#Save | |
swift test.swift |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment