[swift-users] SwiftPM on Linux Failed

Ankit Aggarwal ankit_aggarwal at apple.com
Tue Aug 29 12:59:39 CDT 2017


Hey,

Can you post the steps you followed to install the Swift toolchain?

Also, can you post the output of:
$ swift build -v

Thanks!

On Tue, Aug 29, 2017 at 8:14 PM, adelzhang via swift-users <
swift-users at swift.org> wrote:

>
> Hi, everyone.
>
> Installing swift on linux is not that easy. Following
> https://swift.org/getting-started/#using-the-package-manager instruction,
> but `swift build` failed:
>
> ```
> error: manifest parse error(s):
> /home/vagrant/hello/Package.swift:4:8: error: no such module
> 'PackageDescription'
> import PackageDescription
>        ^
> ```
>
> I installed Swift 4.0
>
> ```
> $swift version
> Swift version 4.0-dev (LLVM 2dedb62a0b, Clang b9d76a314c, Swift 0899bd328a)
> Target: x86_64-unknown-linux-gnu
> ```
>
> Ubuntu 14.04 is running on VirtualBox using vagrant.
>
> ```
> $lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:    Ubuntu 14.04.5 LTS
> Release:        14.04
> Codename:       trusty
> ```
>
> Does someone happen to know the work-around?
>
> --
> Regards
>
> adelzhang
>
>
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170829/3fea5782/attachment.html>


More information about the swift-users mailing list