7/18/2023 0 Comments Xampp for mac m1On some M1 systems, you may need to run this instead of the previous command: arch -x86_64 sudo pecl install xdebug Change directories into the xdebug source folder.A backup may be in order.Īfter you install the Developer Files, make sure the path to all the XAMPP’s binaries is in your system path: /Applications/XAMPP/xamppfiles/binĭownload and compile XDebug. Be careful not to lose any of your precious configuration options or web projects in htdocs. I haven’t tried this, so don’t know exactly how it will work. If you’ve already installed XAMPP without the Developer Files, you will need to re-install, selecting only the Developer Files from Install Wizard options. So, make your selections during installation like this: This will provide the PHP header files you need to compile XDebug, otherwise, you will receive a very annoying Can't find file php.h and your installation of XDebug will fail. This is the part that may have messed up your XDebug installation attempts before this you need to install the XAMPP Developer Files along with XAMPP Core Files. It can make installation of some packages, and their dependencies, quite easy.Īfter installing Homebrew, install the autoconf, automake and libtool pacakges. Homebrew is a package manager for Mac, similar to Apt on Debian Linux systems, RPM on Redhat type systems, or Yum. Install Homebrew if you haven’t installed it already. But, if not, just run this command from a terminal, and follow the prompts to install the Xcode command line tools: xcode-select -install You probably have these installed already if you are using git. You do not need to install PHP with Homebrew. This is the minimum required to allow you to compile XDebug. The easiest thing to do is to install Homebrew and the autoconf, automake and l ibtool packages. It is possible to install XDebug on Mac for XAMPP without having to install Homebrew, but it’s not a course I’d recommend, unless you want to install the entire Xcode.app package from Apple, and then compile autoconf, automake and libtool yourself.
0 Comments
Leave a Reply. |