【问题标题】:I am trying to install Vapor on my raspberrypi but getting strange errors我正在尝试在我的树莓派上安装 Vapor,但出现奇怪的错误
【发布时间】:2020-12-10 20:46:13
【问题描述】:

我正在运行 Raspbian,到目前为止已经安装了 Swift 5.1.5 并克隆了 Vapor Branch 18.0.0 beta 27。我似乎无法以某种方式在我的系统上安装 Swift 5.2 版。

尽管如此,下一步是构建 Vapor,但它给了我以下错误:

sudo swift build -c release

Updating https://github.com/jpsim/Yams.git
Updating https://github.com/apple/swift-nio.git
Updating https://github.com/vapor/console-kit.git
Updating https://github.com/apple/swift-log.git
Updating https://github.com/tanner0101/mustache.git
https://github.com/apple/swift-nio.git @ master: error: terminated(128): git -C /home/pi/Downloads/toolbox/.build/repositories/swift-nio-b68c973e rev-parse --verify 'master^{commit}' output:
    fatal: Needed a single revision

不知道从那里去哪里,在网上找不到任何相关信息。

【问题讨论】:

    标签: swift raspbian vapor


    【解决方案1】:

    Vapor 4 和新工具箱都需要 Swift 5.2 - 您需要先安装。

    接下来是旧版本的工具箱,您可以在https://github.com/vapor/toolbox/releases找到最新版本

    最后,您可能不需要工具箱。它用于创建新项目。如果您只想构建或运行现有的,只需使用 swift 命令

    【讨论】:

    • 所以我实际上必须安装 ubuntu 20.04 LTS,谢谢 :)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-23
    • 2011-10-13
    • 2013-09-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多