Skip to content

hello-lang/Swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Swift

Simple hello world program in swift

dependencies

clang, libicu-dev, & git (Linux/Unix)

building

build and run in macos

swift hello_world.swift 

build and run in Linux environment

Install Dependencies

sudo apt-get install clang libicu-dev -y
wget https://swift.org/builds/swift-4.1.2-release/ubuntu1404/swift-4.1.2-RELEASE/swift-4.1.2-RELEASE-ubuntu14.04.tar.gz
tar -xvzf swift-4.1.2-RELEASE-ubuntu14.04.tar.gz -C ~/swift

Configuring environment variables

sudo vi ~/.bashrc export PATH=~/swift/swift-4.1.2-RELEASE-ubuntu14.04/usr/bin:$PATH

Building & Running

swift build
.build/debug/helloworld-project

Releases

No releases published

Packages

No packages published

Languages