Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ To compile install and test Swift under Linux     - Zabbix using Omsa monitor hardware information of Dell server (Server)

- OpenDJ installed on RHEL6 (Linux)

- Jump table (skiplist) of code (Programming)

- Linux system versions organize local root password cracking method (Linux)

- Android memory optimization of the optimal load Bitmap (Linux)

- 64-bit Windows Server 2012 R2 install Oracle 10g Second Edition (Database)

- Linux character device - a simple character device model (Linux)

- DRBD Principle and Features Overview (Server)

- LVM Disk Manager Application (Linux)

- How to modify the SQL Server auto-increment value and the corresponding solution (Database)

- The direct insertion sort algorithm (Programming)

- Oracle rebuild index script (Database)

- Ubuntu deploying Solr (4.4) to Tomcat (7.0.53) (Server)

- Linux / Centos anti CC attack script (Linux)

- Linux can modify the maximum number of open files (Linux)

- About the replication of JavaScript (Programming)

- Normal start Lazarus 1.0.8 under Ubuntu (Linux)

- Ubuntu 14.04 to install file editor KKEdit 0.1.5 version (Linux)

- Linux Command Study Notes (Linux)

- Java data structures - order linear form of table ArrayList (Programming)

  To compile install and test Swift under Linux
  Add Date : 2018-11-21      
  In early December 2015, Apple's new future-oriented open source programming language Swift! At the same time as a new object-oriented and process-oriented adaptation two programming paradigms statically compiled language, Swift in language design, tool chain sophistication, basic library implementation, the official drivers and developers are an enormous number of first mover advantage , Swift can be said that open source software development community worldwide sensational event.

Swift advantage of being not blow, it said the following points: The first step to participate in the open source Swift - compile, test Swift on Linux.

Groundwork for

Swift language open source project can be found at https://github.com/apple/swift. Ready.

Dependent libraries

Highly recommend the use of a fool of Ubuntu Linux as a desktop system, new software, update fast, most problems can be use sudo apt-get install to solve, very convenient, I am using the latest version 15.10.

Execute a command resolves all dependencies:

sudo apt-get install git cmake ninja-build clang python uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config
If you are using 14.04 LTS or earlier, refer to the README appropriate solutions.

Download Source

Download Source divided into two steps.

First, download Swift Source:

git clone https://github.com/apple/swift.git
The second step, download dependent project source code:

cd swift
./utils/update-checkout --clone
Note: Use HTTPS to faster here, if you want to contribute code, please fork next to your own user, not repeat them here.

Compile and test

Here begin the real exciting part of the test + compiler. Run the command:

utils / build-script -t

I use my weak station arranged 2.1 GHz mobile version of i3 CPU and 8G memory mini PC abruptly compiled 40 minutes, test it very fast within 20 minutes is over. As long as there is no final result Unexpected Failures, it shows that this compilation was successful!

Test outcomes

Run the command:

../build/Ninja-DebugAssert/swift-linux-x86_64/bin/swift -v
If you get the following results, then congratulations, Swift compiled successfully!

Swift version 2.2-dev (LLVM 3ebdbb2c7e, Clang f66c5bb67b, Swift 1f2908b4f7)
Target: x86_64-unknown-linux-gnu
Written in the last

Swift open source was very thorough, even on Ubuntu than MAC compile a more simple, use a set of Linux toolchain community, worthy of admiration!

Also, if you encounter similar clang: error: unable to execute command: Killed in error, do not think, is the memory of the explosion, maybe try a few times on the success.
- Caffe + Ubuntu 14.04 64bit + CUDA 6.5 configuration instructions (Linux)
- iscsiadm command usage (Linux)
- pureftpd basis: Install, configure, implement, anonymous logon (Linux)
- AngularJS - Custom instructions (Programming)
- OpenStack package problems and solutions under CentOS6 (Linux)
- Installation in lxml Python module (Linux)
- Ubuntu 14.04 build Android 5.1 development environment and compiler (Linux)
- You know the difference between URL, URI and URN among you (Linux)
- Install apr support for Tomcat on Linux (Server)
- Docker command Detailed (Linux)
- Installation and configuration of Hadoop under Linux (Server)
- Install mono offline on CentOS (Server)
- Linux virtual machine settings network, hostname ssh access (Linux)
- Android timer use (Programming)
- CentOS 6.5 install VNC-Server (Linux)
- Ubuntu root user profiles (Programming)
- Source Analysis: Java object memory allocation (Programming)
- OpenGL Superb Learning Notes - New Patterns (Programming)
- Linux operating system security tools of the Logs (Linux)
- Linux iptables firewall settings (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.