Answer the question
In order to leave comments, you need to log in
How to install gearman for php7.1 and mac os?
I am using mamp. I'm trying to install according to the instructions https://github.com/wcgallego/pecl-gearman. Writes an error
/bin/sh /Users/nikitadergachov/Downloads/pecl-gearman-master/libtool --mode=compile cc -I. -I/Users/nikitadergachov/Downloads/pecl-gearman-master -DPHP_ATOM_INC -I/Users/nikitadergachov/Downloads/pecl-gearman-master/include -I/Users/nikitadergachov/Downloads/pecl-gearman-master/main -I/Users/nikitadergachov/Downloads/pecl-gearman-master -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -Wall -c /Users/nikitadergachov/Downloads/pecl-gearman-master/php_gearman.c -o php_gearman.lo
cc -I. -I/Users/nikitadergachov/Downloads/pecl-gearman-master -DPHP_ATOM_INC -I/Users/nikitadergachov/Downloads/pecl-gearman-master/include -I/Users/nikitadergachov/Downloads/pecl-gearman-master/main -I/Users/nikitadergachov/Downloads/pecl-gearman-master -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -Wall -c /Users/nikitadergachov/Downloads/pecl-gearman-master/php_gearman.c -fno-common -DPIC -o .libs/php_gearman.o
/Users/nikitadergachov/Downloads/pecl-gearman-master/php_gearman.c:16:10: fatal error: 'php.h' file not found
#include "php.h"
^~~~~~~
1 error generated.
make: *** [php_gearman.lo] Error 1
Answer the question
In order to leave comments, you need to log in
How did you install php?
By mistake - when building, you must include the header file from php sources, for me, for example, it is located in /usr/local/include/php/main (php was installed via brew).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question