Install Gdb For Mac Sierra

Posted on  by 

Question or issue on macOS:

I’m using PHP 7.2 on OS X El Capitan, installed using Homebrew (of course). Now I’d like to use some IMAP functions from PHP’s IMAP extension, but no matter what I search for, I can’t find a way to add the extension on OSX.

Some things I’ve tried… I have, of course, tried the most commonly recommended approach:

Yet this fails, returning:

Question or issue on macOS: I have installed gdb 8.1 with brew. I have codesign gdb also and.gdbinit as below: set startup-with-shell off. I have disabled SIP feature: $ csrutil status System Integrity Protection status: disabled. But gdb still doesn’t work: #include using namespace std; int main cout. You can install gdb on Debian-based linux distro (e.g. Ubuntu, Mint, etc) by following command. $ sudo apt-get update $ sudo apt-get install gdb 2. Download source code of GDB, compile it and install. How To Install macOS Sierra on USB/hard-disk install Mac OS on window Dual Boot For Icloud bypassdownload mac os dmg filetra. Install-mac-os-sierra.app Scanner Internet Archive HTML5 Uploader 1.6.4 Year 2016. Plus-circle Add Review. Reviews There are no reviews yet.

Another method, which I found mentioned in passing, also fails:

I’m not exactly sure which direction to go in with this. I’m sure there’s an easy, probably documented, way of doing this, but I am yet to find it. Perhaps I’m just looking in the wrong places and using the wrong search terms…

How to solve this problem?

Solution no. 1:

Kevin Abel is providing some of the PHP extensions removed from Homebrew/core. You can install the IMAP extension with:

To install a specific version, such as 7.2 use:

Solution no. 2:

Here is how I solved this problem under Mojave:

First, I installed IMAP module for PHP 7.2

Secondly I copied the imap.so from installed folder to the ‘extension_dir’ used by php.ini

Install Gdb For Mac Sierra

Solution no. 3:

This answer for those who prefer installing imap ext using native commands without adding other taps or smth else.

In short we need to compile extension from sources.
Ok, here is the process.

Install

That’s it. Be lucky!

Solution no. 4:

For those who have trouble in Mojave, I have forked the repository and fixed it use:
brew tap vishal-sancheti/php-ext instead

Install Gdb For Mac SierraInstall Gdb For Mac Sierra

Install Gdb Mac High Sierra

Hope this helps!

Coments are closed