deuill / go-php

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

ubuntu 16.04 PHP7 "fatal error: main/php.h: No such file or directory" #35

Closed alash3al closed 7 years ago

alash3al commented 7 years ago

sorry, this may be a wrong place ? i've ubuntu 16.04, the php include path is located at /usr/include/php/20151012, is there any trick that will solve that issue using any ENV var ?

deuill commented 7 years ago

Hi @alash3al, can you try building with the php7.debian tag, i.e.:

go build -tags php7.debian

You'll need to pass that tag for any package that depends on go-php as well.

alash3al commented 7 years ago

Thanks @deuill , i tried that, and it worked as expected, sorry because i didn't discovered that solution myself .

deuill commented 7 years ago

No problem, glad it worked! I should probably add a section for this in the README. Closing, please open a new issue if you have any further problems/questions!