After update to macOs Big Sur and update PHP 7.3 -> 7.4.19 my postgres not working.
Extensions activated in php.ini
extension=pdo_pgsql
extension=pgsql
PHP instaled using brew
Output command php -m not contains the module pdo_pgsql
Error output in command php artisan serve:
PHP Startup: Unable to load dynamic library 'pdo_pgsql' (tried: /opt/local/lib/php74/extensions/no-debug-non-zts-20190902/pdo_pgsql (dlopen(/opt/local/lib/php74/extensions/no-debug-non-zts-20190902/pdo_pgsql, 9): image not found), /opt/local/lib/php74/extensions/no-debug-non-zts-20190902/pdo_pgsql.so (dlopen(/opt/local/lib/php74/extensions/no-debug-non-zts-20190902/pdo_pgsql.so, 9): image not found)) in Unknown on line 0
Related
I have a problem with mongodb extension in xampp.
I installed with command:
sudo pecl install mongodb
and enabled in php.ini:
extension="mongodb.so"
but it's has a problem when command writinig
php -v
or install jenssegers/mongodb in laravel
composer require jenssegers/mongodb
and etc...
Help me🙏
PHP 8.2
MacOs 13.2
problem:
PHP Warning: PHP Startup: Unable to load dynamic library 'mongodb.so' (tried: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20220829/mongodb.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20220829/mongodb.so, 0x0009): symbol not found in flat namespace '_u_strFromUTF8_72'), /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20220829/mongodb.so.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20220829/mongodb.so.so, 0x0009): tried: '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20220829/mongodb.so.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20220829/mongodb.so.so' (no such file), '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20220829/mongodb.so.so' (no such file))) in Unknown on line 0
I installed different versions from mongodb extension but it's have problem.
I have been trying to install pdo_pgsql. Homebrew is not working. Adminer needs this extension for accessing the DB. How to solve the issue?
PgSQL and PDO_PgSQL extensions are already enabled on the php.ini file. But, still, Adminer shows the Error:
None of the supported PHP extensions (PgSQL, PDO_PgSQL) are available.
When running $ php artisan serve, it shows the following error
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_pgsql' (tried: /opt/homebrew/lib/php/pecl/20190902/pdo_pgsql (dlopen(/opt/homebrew/lib/php/pecl/20190902/pdo_pgsql, 9): image not found), /opt/homebrew/lib/php/pecl/20190902/pdo_pgsql.so (dlopen(/opt/homebrew/lib/php/pecl/20190902/pdo_pgsql.so, 9): image not found)) in Unknown on line 0
I am getting crazy since days as my new MacBook OS X Big Sur with php#7.4 is giving issues to XAMPP.
As far as I understood it's better to use the php from OS X than from XAMPP, but I am getting error while trying to install intl using brew. Here my code:
sudo pecl install intl
When I run the above I get this warning:
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/lib/php/pecl/20190902/intl (dlopen(/usr/local/lib/php/pecl/20190902/intl, 9): image not found), /usr/local/lib/php/pecl/20190902/intl.so (dlopen(/usr/local/lib/php/pecl/20190902/intl.so, 9): image not found)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/lib/php/pecl/20190902/intl (dlopen(/usr/local/lib/php/pecl/20190902/intl, 9): image not found), /usr/local/lib/php/pecl/20190902/intl.so (dlopen(/usr/local/lib/php/pecl/20190902/intl.so, 9): image not found)) in Unknown on line 0
downloading intl-3.0.0.tgz ..
then I am asked about path for ICU.
Specify where ICU libraries and headers can be found [DEFAULT] :
I press ENTER and I get this:
running: /private/tmp/pear/temp/intl/configure --with-php-config=/usr/local/opt/php#7.4/bin/php-config --with-icu-dir=DEFAULT
Then the installation starts, but at the end I get this error:
configure: error: Package requirements (icu-uc >= 50.1 icu-io icu-i18n) were not met:
No package 'icu-uc' found
No package 'icu-io' found
No package 'icu-i18n' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables ICU_CFLAGS
and ICU_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
ERROR: `/private/tmp/pear/temp/intl/configure --with-php-config=/usr/local/opt/php#7.4/bin/php-config --with-icu-dir=DEFAULT' failed
If I make:
which php
I get:
/usr/local/opt/php#7.4/bin/php
Anyone able to give real solution?
thanks!
When I wrote sudo pecl install intl command on terminal I get the following error.
My path is Applications/XAMPP/xamppfiles/bin/php.
I wrote extension=intl.so in php.ini file in etc.
Warning: PHP Startup: Unable to load dynamic library 'intl.so' (tried: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20170718/intl.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20170718/intl.so, 9): Symbol not found: _zend_string_init_interned
Referenced from: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20170718/intl.so
in /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20170718/intl.so), /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20170718/intl.so.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20170718/intl.so.so, 9): image not found)) in Unknown on line 0
Can someone help ?
I'm running macOS 10.12, Apache 2.4, and PHP 7.2.7
When I add the line: LoadModule php5_module libexec/apache2/libphp5.so
to my httpd.conf I get the following errors.
httpd not running, trying to start
Warning: PHP Startup: Unable to load dynamic library 'curl.so'
(tried:
/usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/curl.so
(dlopen(/usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/curl.so,
9): Library not loaded: /usr/local/php5/lib/libcurl.4.dylib
Referenced from:
/usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/curl.so
Reason: Incompatible library version: curl.so requires version 9.0.0
or later, but libcurl.4.dylib provides version 7.0.0),
/usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/curl.so.so
(dlopen(/usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/curl.so.so,
9): image not found)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library
'/usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/http.so'
(tried:
/usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/http.so
(dlopen(/usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/http.so,
9): Library not loaded: /usr/local/php5/lib/libcurl.4.dylib
Referenced from:
/usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/http.so
Reason: Incompatible library version: http.so requires version 9.0.0
or later, but libcurl.4.dylib provides version 7.0.0),
/usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/http.so.so
(dlopen(/usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/http.so.so,
9): image not found)) in Unknown on line 0
/usr/sbin/apachectl: line 92: 719 Segmentation fault: 11 $HTTPD "$#"
I updated curl with brew and it shows:
/usr/local/php5/lib/libcurl.4.dylib (compatibility version 9.0.0, current version 9.0.0)
I still get the same error.
Why is the error showing libcurl.4.dylib provides version 7.0.0 when it is version 9.0.0? Is it pointing to an older version of the file? They both show this location /usr/local/php5/lib/libcurl.4.dylib
Thanks for your help.
it basically reads:
requires version 9.0.0 or later, but *.dylib provides version 7.0.0
this means, you have to install these libraries at version 9.0.0, instead of version 7.0.0.
it's also strange that dlopen() complains about filename suffix .so.so
I finally found a solution that works.
$ brew install httpd php72
I followed the instructions to setup the httpd.conf file and the php.ini file and Apache starts fine now.