Open naliferov opened 5 years ago
Hi, in general, most PHP packages do not include the necessary libraries that Go needs to link against. Your best bet is either using the included Docker container (which you can build with make docker-image
) for as your compilation environment, or compile PHP for Mac OS X with --enable-embed
provided to the ./configure
script.
You can also build go-php
and link against a static version of the PHP library with the STATIC
variable, and can also provide a specific PHP version to build against with the PHP_VERSION
variable, e.g. make docker-build STATIC=true PHP_VERSION=7.1.22
.
Hope this helps.
I use Mac OS. I got php7 installed.
but when i execute "go get github.com/deuill/go-php" i getting this error: