deuill / go-php

PHP bindings for the Go programming language (Golang)
MIT License
925 stars 105 forks source link

Compilation Error #67

Open dukryung opened 5 years ago

dukryung commented 5 years ago

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 commented 5 years ago

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 commented 3 years ago

on os x it's the same problem