Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ To compile install and test Swift under Linux     - Eclipse-4.4 crash problem solving under Debian-7.6 (Linux)

- CentOS / RHEL 6 was repeated prohibited under the SNMP connection log (Server)

- Ubuntu 14.04 LTS installed Hadoop 1.2.1 (distributed cluster mode) (Server)

- Thrift 0.9.3 compiler installation under Ubuntu (Linux)

- Sublime Text - Opens the current file in a browser (Linux)

- Use Mop monitor stock prices at the Linux command line (Linux)

- Iptables command in detail (Linux)

- Laravel 4 Expansion Pack (Server)

- Git 2.5 increase in the working tree, triangle improved workflow performance (Linux)

- Java developers question (Programming)

- Two minutes thoroughly so that you understand Android Activity Lifecycle (Programming)

- Under CentOS yum install Nginx smooth switch mounted to Tengine (Server)

- Quickly locate the mistakes by gdb location (Programming)

- Advanced Linux security settings (Linux)

- Linux system security (Linux)

- fcntl file locking function add (Programming)

- Machine Learning: Classification of the curse of dimensionality (Programming)

- The method of MySQL two kinds of incomplete recovery (Database)

- Ubuntu 14.04 modify environment variables (Linux)

- How to install and configure the KVM and Open vSwitch on Linux distributions (Linux)

 
         
  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
Jinghoujiayin

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.
     
         
         
         
  More:      
 
- Some of the bibliographic management tools to good use on linux (Linux)
- IBM Data Studio to use ---- window displays all rows (Database)
- CentOS build JDK environment (Linux)
- Sudo and Root Account in Ubuntu related (Linux)
- These days have been tossing in the Linux under the ASP.NET 5, on the next in the other operating systems in the ASP.NET 5 or. NET applications, in order to complete the MS VM (CoreCLR) run is not far Reach, the effect of the application.

Cur
(Server)
- Difference LVS three scheduling modes (Server)
- Command filter MySQL slow query log (Database)
- Linux system performance analysis and top command ps.pstree Comments (Linux)
- Go build the locale under Windows (Linux)
- The temporary operation of the document mkstemp on Linux (Linux)
- Appweb configuration in detail (Server)
- Samhain: Powerful intrusion detection system under Linux (Linux)
- The headers for the current running kernel were not found when VirtualBox installation enhancements (Linux)
- Linux development management utility command (Linux)
- How to install the NVIDIA 358.16 driver in Ubuntu 15.10,14.04 (Linux)
- Java Timer (regular calling, to achieve a fixed time to perform) (Programming)
- To learn linux security (Linux)
- Oracle Linux 6.4 (BOND) dual NIC teaming combat - Annotated (Linux)
- How to use Quagga BGP (Border Gateway Protocol) router to filter BGP routing (Linux)
- Parameters of the extra port MySQL 5.6 (Database)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.