This is the error I get when installing gRPC through PECL (with sudo):

/private/tmp/pear/install/grpc/src/php/ext/grpc/byte_buffer.c:19:10: fatal 
error: 'php.h' file not found
#include <php.h>
         ^~~~~~~
1 error generated.
make: *** [src/php/ext/grpc/byte_buffer.lo] Error 1
ERROR: `make' failed

> On 20 Aug 2019, at 00:06, Stanley Cheung <stanleyche...@google.com> wrote:
> 
> Are you running the system-installed PHP binary, but tried to load 
> homebrew-installed extensions? They have to go in pairs. 
> 
> If you install the extension via homebrew, you may need to find the extension 
> grpc.so file within your homebrew installation directory.
> 
> In any case, are you able to install and use any other PHP PECL extensions? 
> The grpc extension did not attempt to install itself to any special directory.
> 
> On Mon, Aug 19, 2019 at 1:19 AM Fre Feys <fref...@gmail.com 
> <mailto:fref...@gmail.com>> wrote:
> Thank you Stanley
> 
> I disabled the SIP in recovery mode, restarted the system. Installed using 
> gRPC with homebrew. 
> 
> Still have the same error:
> "PHP Startup: Unable to load dynamic library 
> '/usr/lib/php/extensions/no-debug-non-zts-20160303/grpc.so’ -….. “
> 
> What can I do?
> 
> Thanks 
> Fred
> 
>> On 19 Aug 2019, at 07:40, Stanley Cheung <stanleyche...@google.com 
>> <mailto:stanleyche...@google.com>> wrote:
>> 
>> On later versions of MacOS, we have seen issues involving "System Integrity 
>> Protection" not allowing user to install extensions without escalated 
>> permissions. Some blog post that talks about this: 
>> http://www.devinbaldwin.com/2018/09/27/how-to-install-xdebug-on-a-new-mac-including-mojave/
>>  
>> <http://www.devinbaldwin.com/2018/09/27/how-to-install-xdebug-on-a-new-mac-including-mojave/>
>> 
>> If you don't want to go that route, you might want to look into installing 
>> PHP extensions via homebrew.
>> 
>> On Sun, Aug 18, 2019 at 8:30 AM Frederik Feys <fref...@gmail.com 
>> <mailto:fref...@gmail.com>> wrote:
>> 
>> Hi everyone!
>> 
>> I installed gRPC with PECL on a mac running Mojave (latest OS). 
>> 
>> I get this error: 
>> PHP Warning:  PHP Startup: Unable to load dynamic library 
>> '/usr/lib/php/extensions/no-debug-non-zts-20160303/grpc.so' - 
>> dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/grpc.so, 0x0009): 
>> dlopen(): file not found: 
>> /usr/lib/php/extensions/no-debug-non-zts-20160303/grpc.so in Unknown on line >> 0
>> 
>> 
>> In Pear, the extension lib is set to 
>> /usr/lib/php/extensions/no-debug-non-zts-20160303. So I expect it to install 
>> the gRPC extension there. Indeed the dir shows no .so file. 
>> 
>> 
>> 
>> What can I do to install this extension in my php environment?
>> 
>> 
>> 
>> Thank you,
>> 
>> Fred
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "grpc.io <http://grpc.io/>" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to grpc-io+unsubscr...@googlegroups.com 
>> <mailto:grpc-io+unsubscr...@googlegroups.com>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/grpc-io/c48db803-c433-4dfe-829c-a4529deaf2ba%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/grpc-io/c48db803-c433-4dfe-829c-a4529deaf2ba%40googlegroups.com?utm_medium=email&utm_source=footer>.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/2D29AD0D-B25C-4A50-BA29-54CD961DA61F%40gmail.com.

Reply via email to