I got this message:
Build process completed successfully
Installing '/opt/homebrew/Cellar/php@7.4/7.4.32/pecl/20190902/xdebug.so'
Warning: mkdir(): File exists in System.php on line 294
PHP Warning: mkdir(): File exists in /opt/homebrew/Cellar/php@7.4/7.4.32/share/php@7.4/pear/System.php on line 294
Warning: mkdir(): File exists in /opt/homebrew/Cellar/php@7.4/7.4.32/share/php@7.4/pear/System.php on line 294
ERROR: failed to mkdir /opt/homebrew/Cellar/php@7.4/7.4.32/pecl/20190902
On M1 my php path is different /opt/homebrew/etc/php/7.4
I tried to find the xdebug.so
without success. This directory not exists /opt/homebrew/Cellar/php@7.4/7.4.32/pecl
. In my case pecl is a symlink and i cannot enter.
PHP Warning: PHP Startup: Unable to load dynamic library 'xdebug.so' (tried: /opt/homebrew/opt/php@7.4/lib/httpd/modules/xdebug.so (dlopen(/opt/homebrew/opt/php@7.4/lib/httpd/modules/xdebug.so, 0x0009): tried: '/opt/homebrew/opt/php@7.4/lib/httpd/modules/xdebug.so' (no such file), '/usr/local/lib/xdebug.so' (no such file), '/usr/lib/xdebug.so' (no such file), '/opt/homebrew/Cellar/php@7.4/7.4.32/lib/httpd/modules/xdebug.so' (no such file), '/usr/local/lib/xdebug.so' (no such file), '/usr/lib/xdebug.so' (no such file)), /opt/homebrew/opt/php@7.4/lib/httpd/modules/xdebug.so.so (dlopen(/opt/homebrew/opt/php@7.4/lib/httpd/modules/xdebug.so.so, 0x0009): tried: '/opt/homebrew/opt/php@7.4/lib/httpd/modules/xdebug.so.so' (no such file), '/usr/local/lib/xdebug.so.so' (no such file), '/usr/lib/xdebug.so.so' (no such file), '/opt/homebrew/Cellar/php@7.4/7.4.32/lib/httpd/modules/xdebug.so.so' (no such file), '/usr/local/lib/xdebug.so.so' (no such file), '/usr/lib/xdebug.so.so' (no such file))) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'xdebug.so' (tried: /opt/homebrew/opt/php@7.4/lib/httpd/modules/xdebug.so (dlopen(/opt/homebrew/opt/php@7.4/lib/httpd/modules/xdebug.so, 0x0009): tried: '/opt/homebrew/opt/php@7.4/lib/httpd/modules/xdebug.so' (no such file), '/usr/local/lib/xdebug.so' (no such file), '/usr/lib/xdebug.so' (no such file), '/opt/homebrew/Cellar/php@7.4/7.4.32/lib/httpd/modules/xdebug.so' (no such file), '/usr/local/lib/xdebug.so' (no such file), '/usr/lib/xdebug.so' (no such file)), /opt/homebrew/opt/php@7.4/lib/httpd/modules/xdebug.so.so (dlopen(/opt/homebrew/opt/php@7.4/lib/httpd/modules/xdebug.so.so, 0x0009): tried: '/opt/homebrew/opt/php@7.4/lib/httpd/modules/xdebug.so.so' (no such file), '/usr/local/lib/xdebug.so.so' (no such file), '/usr/lib/xdebug.so.so' (no such file), '/opt/homebrew/Cellar/php@7.4/7.4.32/lib/httpd/modules/xdebug.so.so' (no such file), '/usr/local/lib/xdebug.so.so' (no such file), '/usr/lib/xdebug.so.so' (no such file))) in Unknown on line 0
PHP 7.4.32 (cli) (built: Sep 29 2022 10:45:51) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.32, Copyright (c), by Zend Technologies
This path /opt/homebrew/opt/php@7.4/lib/httpd/modules
for my modules is correct but the xdebug.so
is not inside.