Skip to content

Instantly share code, notes, and snippets.

@indraAsLesmana
Created January 20, 2024 11:12
Show Gist options
  • Select an option

  • Save indraAsLesmana/da9be0ec7ce65aada765c34b97ba87f5 to your computer and use it in GitHub Desktop.

Select an option

Save indraAsLesmana/da9be0ec7ce65aada765c34b97ba87f5 to your computer and use it in GitHub Desktop.
Error install xdebug on Mac
Install using ```pecl install xdebug```
and got error something like this:
Warning: mkdir(): File exists in System.php on line 294
PHP Warning: mkdir(): File exists in /opt/homebrew/Cellar/php/8.2.12_1/share/php/pear/System.php on line 294
Warning: mkdir(): File exists in /opt/homebrew/Cellar/php/8.2.12_1/share/php/pear/System.php on line 294
ERROR: failed to mkdir /opt/homebrew/Cellar/php/8.2.12_1/pecl/20220829
simply fix with this:
pecl config-get ext_dir | pbcopy
mkdir -p {paste clipboard value}
and re install again using pecl install xdebug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment