Skip to content
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

Compilation Error #67

Open
dukryung opened this issue May 22, 2019 · 2 comments
Open

Compilation Error #67

dukryung opened this issue May 22, 2019 · 2 comments

Comments

@dukryung
Copy link

go:11:23: fatal error: main/php.h: No such file or directory
// #include <main/php.h>
^
compilation terminated.

OS -> windows 10.

i don't know how to fix it.

@deuill
Copy link
Owner

deuill commented May 22, 2019

Hi, there's a number of issues already open concerning these sorts of errors, but the gist of the issue is that either php-embed isn't installed (including development headers), or that Go can't find them. However, compilation hasn't been tested on Windows, and I don't have access to a Windows computer so I cannot be of much help.

You can, however, try to compile within a Docker image which you can build by calling make docker-image here, or using one of the (admittedly fairly old) pre-built images: https://hub.docker.com/r/deuill/go-php/tags

@zhangyu-chuanmo
Copy link

on os x it's the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants