1

python-swiftclient 3.0.0 Ubuntu 16.04.1 LTS

I type in swift build and it returns the list of swift commands and says at the end no such command. Could not find anyone describing this specific command line response.

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
nethanger1
  • 11
  • 4
  • Try to install `swift` with `sudo apt-get install python-swiftclient python3-swiftclient` – Rahul Dec 10 '16 at 17:15

3 Answers3

0

That's because you use either python-swiftclient either your PATH is wrong.
If swift --version returns:

python-swiftclient 3.0.0

Then you aren't currently calling swift build system. Check this link and update your swift release here. Else check that you call the right swift executable by doing:

which swift

The output is the executable you are actually calling.

VivienG
  • 2,143
  • 3
  • 24
  • 43
0

Environmental variable failure just source ~/.bashrc

0

Seems that the entire swift environment is needed, so visit the swift download page, and choose your system (mine is ubuntu 18.04):

$ wget https://download.swift.org/swift-5.5.2-release/ubuntu1804/swift-5.5.2-RELEASE/swift-5.5.2-RELEASE-ubuntu18.04.tar.gz
$ tar -xf swift-5.5.2-RELEASE-ubuntu18.04.tar.gz
$ PATH=~/swift-5.5.2-RELEASE-ubuntu18.04/usr/bin:$PATH

This solution worked perfect for me.

OrenIshShalom
  • 5,974
  • 9
  • 37
  • 87