How to install swift on raspberry pi 3

I want to install Swift on a model of Raspberry Pi 3 B. The Rasberry Pi works with Ubuntu mate 15.10, but I have errors, when I write quickly, I see in the terminal

install the python-swiftclient package

when I install this package and write "swift", it could not find this command.

So, any suggestions?

+5
source share
3 answers

Swift 3.0 is available for Raspberry Pi 2 and 3. You can download and install it from the instructions at http://dev.iachieved.it/iachievedit/swift-3-0-on-raspberry-pi-2-and-3/ .

Disclaimer: I host this site, but I am part of a larger community in which Swift connect to ARM-based devices. For more information about joining the Slack community, see http://dev.iachieved.it/iachievedit/swift-for-arm-systems/ .

+10
source

The official Swift website only has binaries for x64 processors. If you want to install on Pi3, look at resources from iachieved.it or uraimo. They have many tips for compiling and using Swift on Pi, as well as binaries for all versions of Pi.

+3
source

Swift is not distributed through the default Ubuntu package manager. This means that you cannot install with apt-get install . What you need to do is download the compiled Swift package from swift.org . Run wget first to get the Swift package in a compressed .tar.gz file.

 $ wget https://swift.org/builds/swift-2.2-release/ubuntu1510/swift-2.2-RELEASE/swift-2.2-RELEASE-ubuntu15.10.tar.gz 

Then you need to unzip the file by running

 $ tar xzf swift-2.2-RELEASE-ubuntu15.10.tar.gz 

This will unzip the file and create folders where the binary files are located. Go to swift-2.2-RELEASE-ubuntu15.10/usr/bin/ and make sure swift exists. You can start it by entering it in the terminal window.

 $ ./swift 
-2
source

Source: https://habr.com/ru/post/1246889/


All Articles