-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
header '/usr/include/gd.h' not found #4
Comments
Getting the same thing on a Heroku install. |
@tobegit Thank you it worked for me too on |
I am getting this error while using Docker. |
Hmm. libgd-dev in the Aptfile is no longer working on Heroku. I still get the same error: remote: Compile Swift Module 'SwiftGD' (1 sources) |
I believe this issue has been fixed in 2.5.0. Can anyone reproduce this in current release? |
It isn't working for me with Swift package manager & Vapor,
|
Package.swift content:
import PackageDescription
let package = Package(
name: "project5",
dependencies: [
.Package(url: "https://github.com/IBM-Swift/Kitura.git", majorVersion: 1),
.Package(url: "https://github.com/IBM-Swift/Kitura-StencilTemplateEngine.git", majorVersion: 1),
.Package(url: "https://github.com/IBM-Swift/HeliumLogger.git", majorVersion: 1),
.Package(url: "https://github.com/twostraws/SwiftGD.git", majorVersion: 1)
]
)
OP: MacOS Sierra/Ubuntu 16.04 (DigitalOcean)
Env: Docker using ibmcom/swift-ubuntu:latest/ also I tried it without docker
root@bb33f543917b:/projects/project5# swift build
Compile Swift Module 'SwiftGD' (1 sources)
Compile CHTTPParser utils.c
Compile Swift Module 'KituraStencil' (1 sources)
Compile CHTTPParser http_parser.c
/projects/project5/.build/checkouts/Cgd.git--1390626494485699789/module.modulemap:2:9: error: header '/usr/include/gd.h' not found
header "/usr/include/gd.h"
^
/projects/project5/.build/checkouts/SwiftGD.git-1170172309405307774/Sources/SwiftGD.swift:3:9: error: could not build Objective-C module 'Cgdlinux'
import Cgdlinux
^
:0: error: build had 1 command failures
error: exit(1): /usr/bin/swift-build-tool -f /projects/project5/.build/debug.yaml
The text was updated successfully, but these errors were encountered: