Building a swift system package on Ubuntu gives error
Clash Royale CLAN TAG#URR8PPP
Building a swift system package on Ubuntu gives error
I am trying to build a swift system package on Ubuntu which uses Berkeley DB. It generated following errors
<unknown>:0: error: unexpected 'commands' value (expected map)
<unknown>:0: error: unable to load build file
My modulemap file looks like the following
module BerkeleyDB [system]
header "/usr/include/db.h"
link "libdb-5.3"
export *
And Package.swift is as follows
// 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"),
]
)
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.