Ubuntu 14.04 (Windows) 上的 Vapor 设置错误

Errors in Vapor setup on Ubuntu 14.04 (Windows)

https://vapor.github.io/documentation/getting-started/install-toolbox.html 中的以下步骤导致此错误:

$ curl -sL toolbox.vapor.sh | bash

/swift-3.0/usr/bin/swift-build: error while loading shared libraries: libFoundation.so: cannot enable executable stack as shared object requires: Invalid argument

有什么想法吗?

我在 Windows 上没有 Ubuntu 可以查看,但这是 known issue

This commenter GitHub 似乎找到了解决方案。

apt-get install execstack
execstack -c {swift_path}/usr/lib/swift/linux/libFoundation.so