Sitemap

Install Xdebug on the Apple Silicon

1 min readFeb 7, 2021

--

Installing Xdebug on the new MAC Apple Silicon can be a pain, also I haven’t find much information available on the web so here I am.

I’m writing this the February the 7th of 2021, so I’m pretty sure this will be fixed later in the year but I just wanted to help people that needs it now because I just can’t work without this tool, I need it.

First download your desired Xdebug version here : https://xdebug.org/download#releases

Follow the usual installation, for me the installation with pecl didn’t work so I had to choose the Source way.

I didn’t have any issues with the installation until it asked me to type the following command:

./configure — enable-xdebug

I could see issues telling about “wrong architecture”. If you see this and you’re using the new Mac Apple Silicon, the problem is likely due to this new chip.

How did I fix it ?

./configure --enable-xdebug CC="gcc -arch x86_64" CXX="g++ -arch x86_64"

You might also consider doing this:

arch -arm64 sudo pecl install xdebug

That’s it, you’re welcome.

Please let me know if you encountered the same issue or if I’ve been of any help that would be really appreciated.

Until next time,

--

--

Florian Ceprika
Florian Ceprika

Written by Florian Ceprika

0 followers

Adobe Commerce Magento 2 Developer florianceprika.com

No responses yet