Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Ubuntu 15.10 installation and deployment Swift development environment     - Is Linux the most secure operating system (Linux)

- ActiveMQ memory settings and flow control (Linux)

- 11 examples in Linux df command (Linux)

- Servlet life cycle code examples (Programming)

- Alternative methods of intrusion bundled executable file new thinking (Linux)

- Android to determine whether the device to open WIFI, GPRS data connection (Programming)

- Convert MySQL date string to a NULL value exception handling (Database)

- In Spring AOP example explanation (Programming)

- Linux directory permissions to read and execute permissions difference (Linux)

- Based on OpenSSL for HTTPS service configuration (Server)

- CentOS NAT iptables (Linux)

- Linux security settings Basics (Linux)

- How to interactively create a Docker container (Server)

- Linux System Getting Started Tutorial: permission to permanently modify the USB device in Linux (Linux)

- Linux, modify / etc / profile file (Linux)

- Security implementation of disk data protection under Linux (Linux)

- Linux environment has been running Tomcat how to deploy the new Tomcat (Server)

- JavaScript in this usage (Programming)

- Use Tails 1.4 Linux system to protect the privacy and anonymity (Linux)

- Oracle 12C modify spfile path (Database)

  Ubuntu 15.10 installation and deployment Swift development environment
  Add Date : 2018-11-21      
  Apple recently open sourced Swift programming language, which means that anyone will be able to use the Swift programming language on any system. Now, Apple is first brought to the Ubuntu platform Swift, here I'll show you how to install Ubuntu deployment Swift.

What is Swift?

Swift Apple's latest programming language, its purpose is to replace the Objective-C language to build a major Mac OS X and iOS applications. Swift is very simple to learn, but also with other popular programming languages have similar syntax, easy to use.

However, Swift language applies only to Apple devices, the development of the program will not run on Windows, Linux or other systems. With Swift growing popularity, more and more developers are hoping that Apple will open Swift, at least let it be able to support more platforms. Apple is also rare to hear the voice of the majority of developers will eventually Swift was open. Not as good as from a commercial point of view, Apple will Swift Open source is a very good move, it can at least facilitate more developers to create Mac OS X and iOS applications.

If you are interested in learning Swift programming language that can be installed at any time on Linux. Apple currently only released for Ubuntu 14.04 and Ubuntu 15.10 installer, I believe Apple will soon update other platforms and Linux platforms Universal Installer.

Official References: Swift installation tutorial

Step One: Download file

Download Ubuntu 15.10 Swift 2.2 Snapshot and Signature files, download files include swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu15.10.tar.gz .sig and the corresponding file.

Step 2: Install Dependency
Use the keyboard shortcut Ctrl + Alt + T to open the terminal, installation clang:

$ Sudo apt-get install clang libicu-dev
The third step: keyring Ubuntu system to import new PGP secret key

$ Gpg --keyserver hkp: //pool.sks-keyservers.net \
      --recv-keys \
      '7463 A81A 4B2E EA1B 551F FBCF D441 C977 412B 37AD' \
      '1BE1 E29A 084C B305 F397 D62A 9F59 7F4D 21A5 6D5F'

$ Wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import -
Step four: Update signature verification

First, update the secret key certificate:

$ Gpg --keyserver hkp: //pool.sks-keyservers.net --refresh-keys Swift
Secondly, to verify the signature certification:

$ Gpg --verify swift- < VERSION> - < PLATFORM> .tar.gz.sig
Note: Verify that the file is swift- < VERSION> - < PLATFORM> .tar.gz.sig, Signature is the first step in the file name to download.

This step may appear warning that the content shown in FIG warning without pipe line.

Step Five: Unzip the file

$ Tar xzf swift- < VERSION> - < PLATFORM> .tar.gz
Where < VERSION> - < PLATFORM> consistent with the previous step. After unpacking, it will be more after extracting a file folder in the current folder.

Step Six: Add the environment variable

$ Export PATH = ~ / Documents /swift/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu15.10/usr/bin:${PATH}
The "~ / Documents /swift/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu15.10" is my computer files after extracting .tar.gz file folder path.

Note: This add environment variables that apply only in the current session, after the next re-open the terminal needs to re-add.

To re-add not every path, you can modify ~ / .bashrc file $ sudo vim ~ / .bashrc

In the last line add:

export PATH = ~ / Documents /swift/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu15.10/usr/bin:${PATH}

NOTE: If you have not installed the vim editor, you can sudo apt-get install vim installed.

Swift began to journey!

In the terminal input $ swift
- ImageMagick Tutorial: How to cut images in Linux command line (Linux)
- Oracle Linux 7.1 install Oracle 12C RAC (Database)
- MySQL query plan key_len know all (Database)
- Ubuntu users install the Download Manager software Xdman 5.0 (Linux)
- Source MongoDB 3.2.1 installed on CentOS6.5 (Database)
- KVM installation under CentOS 5.5 (Linux)
- High-performance JavaScript reflows and repaints (Programming)
- It is time to upgrade your gulp 4.0 (Programming)
- Ubuntu Server security risk checks (Linux)
- DELL D630 Wireless LAN Driver Installation CentOS6 (Linux)
- Ubuntu 14.04 How to set up an SSH without password (Linux)
- The Gitlab migrated to Docker container (Server)
- Share and show your code on GitHub (Linux)
- Linux log management tools Logrotate (Linux)
- A command to install Sublime Text 3 on Manjaro / Archlinux (Linux)
- Linux Services Comments (Linux)
- Implement binary search algorithm in C language (Programming)
- Ubuntu system cp: omitting directory problem (Linux)
- Django Signals from practice to source code analysis (Programming)
- Let Git variety of colors and custom log format output (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.