1、 下载swift和sig文件 网址https://swift.org/download/ 
sudo apt-get install clang libicu-dev
2、
https://swift.org/keys/all-keys.asc
https://swift.org/keys/automatic-signing-key-1.asc
https://swift.org/keys/release-key-swift-2.2.asc
这3个文件可以用浏览器下载,不用wget命令获取,wget的命令总是失败。
用gpg那个命令走下来按照网址https://swift.org/download/ 说明。
gpg --keyserver hkp://pool.sks-keyservers.net --refresh-keys Swift
wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import -
gpg --keyserver hkp://pool.sks-keyservers.net --refresh-keys Swift
gpg --verify swift-<VERSION>-<PLATFORM>.tar.gz.sig
wget -q -O - https://swift.org/keys/automatic-signing-key-1.asc | gpg --import -
wget -q -O - https://swift.org/keys/release-key-swift-2.2.asc | gpg --import -

Then, use the signature file to verify that the archive is intact:


...
gpg: Good signature from "Swift Automatic Signing Key #1 <swift-infrastructure@swift.org>"
If gpg fails to verify because you don’t have the public key (gpg: Can't check signature: No public key), 
please follow the instructions in Active Signing Keys below to import the keys into your keyring.

You might see a warning:

gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
This warning means that there is no path in the Web of Trust between this key and you. The warning is harmless as long as
you have followed the steps above to retrieve the key from a trusted source.

If gpg fails to verify and reports “BAD signature”, do not use the downloaded toolchain. Instead, please email swift-infrastructure@swift.org 
with as much detail as possible, so that we can investigate the problem.
Active Signing Keys
The Swift project uses one set of keys for snapshot builds, and separate keys for every official release. We are using 4096-bit RSA keys.

The following keys are being used to sign toolchain packages:

Swift Automatic Signing Key #1 <swift-infrastructure@swift.org>

Downloadhttps://swift.org/keys/automatic-signing-key-1.ascFingerprint7463 A81A 4B2E EA1B 551F FBCF D441 C977 412B 37ADLong IDD441C977412B37AD
To import the key, run:

$ wget -q -O - https://swift.org/keys/automatic-signing-key-1.asc | gpg --import -
Swift 2.2 Release Signing Key <swift-infrastructure@swift.org>

Downloadhttps://swift.org/keys/release-key-swift-2.2.ascFingerprint1BE1 E29A 084C B305 F397 D62A 9F59 7F4D 21A5 6D5FLong ID9F597F4D21A56D5F
To import the key, run:

$ wget -q -O - https://swift.org/keys/release-key-swift-2.2.asc | gpg --import -

3、tar xzf swift-<VERSION>-<PLATFORM>.tar.gz
4、sudo gedit  ~/.bashrc 添加 
export PATH=/自己swift路径/usr/bin:"${PATH}"
第一次安装记得 终端 执行下export才好的
5、swift –-version

出现未安装 python-swiftclient python3-swiftclient
sudo apt-get install python-swiftclient python3-swiftclient
6重启终端后 swift --version
Swift version 2.2-dev (LLVM 3ebdbb2c7e, Clang f66c5bb67b, Swift 54dcd16759)
Target: x86_64-unknown-linux-gnu
这样就ok了。测试下
 swift
Welcome to Swift version 2.2-dev (LLVM 3ebdbb2c7e, Clang f66c5bb67b, Swift 54dcd16759). Type :help for assistance.
  1> let he = "a";
he: String = "a"
命令测试ok
写个文件测试下
z@z-VirtualBox:~$ sudo vim a.swift
[sudo] password for z: 
z@z-VirtualBox:~$ swiftc a.swift 
z@z-VirtualBox:~$ ./a 
first
z@z-VirtualBox:~$ swift a.swift 
first

ok了

ubuntu 安装 swift 64位相关推荐

  1. ubuntu安装vmware 64位

    1.从官网上获取http://www.vmware.com/products/workstation/workstation-evaluation.html 2.执行安装程序 chmod +x VMw ...

  2. Go在Ubuntu 14.04 64位上的安装过程

    1. 从 https://golang.org/dl/  或  https://studygolang.com/dl 下载最新的发布版本go1.10即go1.10.linux-amd64.tar.gz ...

  3. Linux(ubuntu)下安装anaconda(64位)并配置jupyter notebook远程访问

    Linux(ubuntu)下安装anaconda(64位)并配置jupyter notebook远程访问 Anaconda指的是一个开源的Python发行版本,其包含了conda.Python等180 ...

  4. 求助下 Ubuntu 15.10(64 位)下安装 pyspider 下的问题 - V2EX

    https://www.v2ex.com/t/279405 求助下 Ubuntu 15.10(64 位)下安装 pyspider 下的问题 - V2EX pip 更新到最新 sudo apt inst ...

  5. Ubuntu 14.04 64位安装32位兼容包

    问题描述 我的操作系统是64bit版的Ubuntu 14.04,很多32bit的软件无法安装使用,因此希望通过安装32位兼容包解决. 安装过程 在Ubuntu 13.10之前,可以通过安装 ia32- ...

  6. Ubuntu 14.04 64位机上配置Android Studio操作步骤

    Android Studio是一个为Android平台开发程序的集成开发环境.2013年5月16日在Google I/O上发布,可供开发者免费使用.Android Studio基于JetBrains ...

  7. Ubuntu 16.04 64位+Qt 5.7.1+opencv 3.2.0 + opencv_contrib 3.2.0

    Ubuntu 16.04 64位+Qt 5.7.1+opencv 3.2.0 + opencv_contrib 3.2.0 author@jason_ql http://blog.csdn.net/l ...

  8. 9.解决 WPS 在ubuntu 19.04 64位下提示“系统缺失字体”

    系统版本:ubuntu 19.04 64位 WPS for Linux提示:系统缺失字体symbol.wingdings.wingdings 2.wingdings 3.webding.MTExtra ...

  9. linux运行qsql,c – QSqlDatabase:未在Ubuntu 15.04 64位上加?...

    在Ubuntu 15.04 64位中,我安装了Qt5.6(在线安装程序),在尝试将我的开发环境从Windows 7迁移到Linux时,我面临以下问题: SqlDatabase: QMYSQL driv ...

最新文章

  1. 【转】JavaScript事件顺序
  2. java 类 大全_JAVA集合类汇总
  3. scrum in agile development
  4. (一)导学(前端框架面试-聚焦Vue/React/Webpack)
  5. 2019计算机国二操作题,2019年3月计算机二级C++操作练习题及答案(十二)
  6. [ios] iOS中arc的设置与使用
  7. django 1.8 官方文档翻译:14-1 按需内容处理
  8. python dataframe 取一行_python – Pandas dataframe获取每个组的第一行
  9. 如何清除web 服务器的缓存
  10. Data truncation: Data too long for column错误分析
  11. JQuery筛选器全系列介绍
  12. fgo最新服务器,FGO服务器故障追加说明 凌晨3点已开服
  13. 设置div背景色为半透明
  14. 使用vba宏/python代码更新word目录——只更新页码
  15. linux安装包apr安装说明,Linux下安装Apr及其Apr-util的基本步骤
  16. 系统分析和设计方法之用户界面设计
  17. 最新的AOC有源光缆介绍,看这一篇就够了
  18. win10无法登录(调用的对象已与其客户端断开连接)
  19. 软件体系结构的基本概念与作用
  20. HDOJ--1052--Tian Ji -- The Horse Racing

热门文章

  1. ccna之交换机密码破解
  2. pku2250--Compromise(最长公共子串,记录结果)
  3. parallels desktop big sur 网络_初中生数学网络学习哪个好
  4. Android 自定义UI--电池
  5. (1)vmware安装ubuntu13.10之后无法进入桌面;(2)ubuntu13.10无法显示eclipse的下拉菜单...
  6. hive 的drop table命令出错
  7. 《『若水新闻』客户端开发教程》——14.代码编写(6)
  8. 是时候该了解一波Protocol Buffers了[Java]
  9. 人工智能助力 上海科委咨询服务用机器人技术
  10. Python编码详解