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> 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> 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/
>
> 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> 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" 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/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/CAEteGX1PqQLSMnJxfESGpYx%3Ds0nYCHpV37%2Bo-UAFDwsBdBaW-g%40mail.gmail.com.

Reply via email to