Closed mirazero closed 7 years ago
You don't need to edit /etc/ld.so.conf
file or set -tags php5
, as php5
is currently the default. Are you trying to build on Linux? If so, which distribution are you using?
If you're on an older version of Ubuntu or Debian, installing libphp5-embed
and php5-dev
should do the trick, otherwise you need to install libphp7.0-embed
and php7.0-dev
and build with -tags php7-debian
. Other distributions can build against PHP7 with -tags php7
.
Amendment to the above: PHP 7 is now the default, so building against PHP 5.x requires that you pass the php5
tag. Also, building against PHP 7 on Debian (or Debian-based distributions, such as Ubuntu) needs the debian
tag only.
Hi, I encountered below error at build.
I added php library path '/usr/include/php' in '/etc/ld.so.conf' file. and then, i did execute this command line.
What's wrong ?