I already installed gRPC following this instruction from google https://cloud.google.com/php/grpc.
I added these two lines
extension=protobuf.so
extension=grpc.so
when I execute line from terminal
sudo php -r "echo extension_loaded('grpc') ? 'yes' : 'no';"
it returns yes, but when I do this in php file
<?php
echo extension_loaded('grpc') ? 'yes' : 'no';
?>
it returns no.
I edited both /etc/php/php.ini and /opt/lampp/etc/php.ini (this one I found with phpinfo() as loaded ini file). Do you guys have any ideas? I am using Manjaro if thats somehow relevant to the issue
EDIT:
It works when i run it from artisan, but when i try to run from lampp i get this error:
PHP Startup: Unable to load dynamic library 'grpc.so' (tried: /usr/lib/php/modules/grpc.so (/opt/lampp/lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/libprofiler.so.0))