PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, August 30, 2022

[FIXED] How to install pear/pecl/xdebug for php using macports

 August 30, 2022     macos-mojave, macports, pear, pecl, php-7.3     No comments   

Issue

I have a PHP setup using macports, on MacOS Mojave. I have just upgraded from 5.6 to 7.3; everything is working fine except that I need xdebug, which requires pecl, which requires pear, and I don't have a working copy of pear any more.

I've found several answers which work using homebrew, but that would mean uninstalling large amounts of stuff and reinstalling them with homebrew, which I'd rather not do if I don't have to.

Various other solutions mentioned in other posts don't work any more because http://pear.php.net/ is down indefinitely. I can find their github site but I can't quite see what to do from there, since their INSTALL file has no instructions for mac.

Any ideas?


Solution

If php 7.2 is sufficient, MacPorts has a port for php72-xdebug. You can install it with

sudo port install php72-xdebug

If you really want 7.3 support, you might ping the maintainer for those packages. There are php73-xxx versions of a number of ports. He hasn't gotten to xdebug at the moment.

More generally, use MacPorts search facility to check for packages you are interested in. For example, enter the following command in Terminal:

port search xdebug

A similar search can be performed on the website, on the Available Ports page:

https://www.macports.org/ports.php



Answered By - Craig
Answer Checked By - Katrina (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing