After getting my problem solved on this brilliant ansewer on how to get Pear running with success on Mac OS, I'm in trouble with the below errors while I'm trying to install and configure GRPC according to this google instruction
I understand that the problem is that the system is "Unable to load dynamic library 'grpc.so'"
Please can anybody give me a path on how to solve those issues or maybe show me what I'm doing wrong?
I'm running my localhost with PHP 8 served by MAMP
Thank you very much!!
composer require "grpc/grpc:^1.38"
PHP Warning: PHP Startup: Unable to load dynamic library 'grpc.so' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/grpc.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/grpc.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/grpc.so), /usr/lib/php/extensions/no-debug-non-zts-20180731/grpc.so.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/grpc.so.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/grpc.so.so)) in Unknown on line 0
My solution is just create directory by run command
"mkdir /usr/local/lib/php/pecl"
In my case, I am using PHP 7.4 in MacOS. When I ran the
pecl install grpc
... command; it installed the .../20190902/grpc.so inside the current PHP version folder, so, I just copy-paste the grpc.so in the right path mentioned in console:
php#7.4/7.426_1/pecl/20190902/grpc.so --> /usr/local/lib/php/pecl/20190902/grpc.so
I hope this can be helpful to anybody!
Related
I am trying to use google cloud php sdk to fetch from google bigtable and found that it requires grpc to be enabled.
So i tried installing grpc on my xampp by downloading dll file from https://pecl.php.net/package/gRPC
I am running PHP version 5.6 on using xampp on my windows machine
I also updated my php.ini file by adding below
extension=php_grpc.dll
I restarted apache and printing phpinfo but i am not able to find grpc module loaded.
I also checked the list of extensions loaded by running php -m command and i get below error.
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_grpc.dll' - The specified module could not be found.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_grpc.dll' - The specified module could not be found.
in Unknown on line 0
Can anyone provide me a solution?
I was facing the same issue when installing the Google Ads PHP library on WAMP Server. I solved it downloading a different gRPC version
https://windows.php.net/downloads/pecl/releases/grpc/1.17.0/
Extacted the file and copied on the extensions directory of WAMP and on the php.ini just add the next line
extension=grpc
Restart apache and php. Hope it helps
Greeting developers, I want to learn laravel framework for my project. For that i follow some instruction in google to install it . i should have composer to install it. i try to download composer but there have some errors.the error is
The PHP exe file you specified did not run correctly:
C:\xampp\php\php.exe
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
A setting in your php.ini could be causing the problem: Either the 'extension_dir' value is incorrect or the dll does not exist.
Program Output:
PHP Warning: PHP Startup: Unable to load dynamic library 'php_mysql.dll' (tried: C:\xampp\php\ext\php_mysql.dll (The specified module could not be found.
), C:\xampp\php\ext\php_php_mysql.dll.dll (The specified module could not be found.
)) in Unknown on line 0
i try to resolve it. i check the php.ini file all looking good only. Is that because of i am using xampp server 7.2.0. I am really need a solution.
Looks like you made a mistake on your php.ini somewhere, this route:
C:\xampp\php\ext\php_php_mysql.dll.dll
... doesnt look at all correct. "php_php" ".dll.dll"
So I just installed imagemagic using homebrew and then also linked to php.ini file.
However, if I run php command on terminal now, I get this error :-
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php71-imagick/3.4.3_4/imagick.so' - dlopen(/usr/local/Cellar/php71-imagick/3.4.3_4/imagick.so, 9): Library not loaded: /usr/local/opt/imagemagick/lib/libMagickWand-7.Q16HDRI.3.dylib
Referenced from: /usr/local/Cellar/php71-imagick/3.4.3_4/imagick.so
Reason: image not found in Unknown on line 0
I'm unable to understand it. What might be the reason for this error?
I have the save problem, and this solution helps me:
brew reinstall -s php71-imagick
I tried to execute this command to install Symfony on my localhost
php -r "readfile('http://symfony.com/installer');" > symfony.phar
I got an error message in my Windows machine regarding this.
The error message is PHP Startup: Unable to load dynamic library 'D:\php\php\ext\intl.so' - The specified module could not found.
It is all about the php.ini file. On windows, the dynamic library files usually do not have the extesion .so (linux library) ... you have to have .dll there... and make sure the referenced file exists.
Following installation of PageSpeed prerequisites, running this command on Ubuntu 11.10
php -V
receives the following error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/svn.so' - libsvn_client-1.so.0: cannot open shared object file: No such file or directory in Unknown on line 0
I commented out the following line from /etc/php5/conf.d/svn.ini, which of course stopped the error. However I would still like to know what I need to do to resolve this error in order to include the extension?
extension=svn.so
Thanks! Any help is greatly appreciated.
You need to first install the package:
sudo apt-get install php5-svn