在Ubuntu上构建快速的系统软件包会出错

时间:2018-08-12 01:32:51

标签: swift ubuntu ubuntu-16.04 swift-package-manager

我正在尝试在使用Berkeley DB的Ubuntu上构建快速的系统软件包。它产生了以下错误

<unknown>:0: error: unexpected 'commands' value (expected map)
<unknown>:0: error: unable to load build file

我的modulemap文件如下所示

module BerkeleyDB [system] {
  header "/usr/include/db.h"
  link "libdb-5.3"
  export *
}

Package.swift如下

// swift-tools-version:4.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

    import PackageDescription

    let package = Package(
        name: "BerkeleyDB",
        dependencies: [
            // Dependencies declare other packages that this package depends on.
            // .package(url: /* package url */, from: "1.0.0"),
        ]
    )

0 个答案:

没有答案