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

标签 swift bash ubuntu windows-subsystem-for-linux vapor

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

$ curl -sL toolbox.vapor.sh |庆典

/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

关于swift - Ubuntu 14.04 (Windows) 上的 Vapor 设置错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41019524/

相关文章:

ubuntu - 使用 Chef 在 Ubuntu 中安装 ffmpeg 因 yasm 版本错误而失败

android - 无法在 Ubuntu 12.04 上连接 Android 版本 2.3.6 手机

swift - 为什么不能 "Binary operator ' = =' be applied to two ' dispatch_queue_t !' operands"

swift - 如何抓取数据!-url 请求中出现 nil 错误

linux - bash for 循环 - 如何使用 ${file} 变量?

linux - 从 linux shell 中的 'ftp' 命令获取退出状态代码

ios - 如何在 SpriteKit 中为 physicsWorld 设置 contactDelegate?

ios - swift 类别 : "Cannot convert value of type to expected argument type ' AnyObject! '

bash:覆盖 echo 以在脚本中打印自定义前缀

linux - Ubuntu caffe安装报错:/usr/bin/ld: cannot find -lcudnn