Skip to content

Instantly share code, notes, and snippets.

@0xkhan
Last active February 23, 2021 22:24
Show Gist options
  • Save 0xkhan/0b25d45a631fdc1e4111ffd67111c1a6 to your computer and use it in GitHub Desktop.
Save 0xkhan/0b25d45a631fdc1e4111ffd67111c1a6 to your computer and use it in GitHub Desktop.
Cannot install: 'Make failed' due to 'asm goto' errors on MacOS

Xdebug throws an error `make` faild when installing with homebrow PHP7 or PHP8.0.1

So if you're having problems here is the fix.

If you have installed PHP with homebrew you'd use pecl install xdebug to install Xdebug.

While looking for a fix I found this issue. And there I found this link following that I found out that someone has discovered something in a commit and now they have fixed it.

Now the fix

Upgrade PHP to PHP8.0.2 with brew upgrade php and then use pecl install xdebug and you're good to go. If you use Vim and want to use xdebug in vim luckily there's a plugin for it Vdebug. Install this plugin and xdebug will work in Vim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment