go-php icon indicating copy to clipboard operation
go-php copied to clipboard

Compilation Error

Open dukryung opened this issue 5 years ago • 2 comments

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.

dukryung avatar May 22 '19 06:05 dukryung

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

deuill avatar May 22 '19 10:05 deuill

on os x it's the same problem

zhangyu-chuanmo avatar Oct 21 '20 04:10 zhangyu-chuanmo