title: GNU MP Library version 4.2 or greater required
body: <p>This is something i've met while trying to install PHP-GMP extension.</p>
  <p>What i was trying to do is:</p>
  <ol>
  <li>Downloaded gmp with brew using <code>brew install autoconf gmp</code></li>
  <li>Downloaded PHP (i'm using version 7.3.24) from source to extract the GMP extension</li>
  <li>Copied Gmp directory to <code>/Applications/MAMP/bin/php/php7.3.24/include/php/ext</code></li>
  <li>Entered that dir and launched <code>phpize</code></li>
  <li>Launched `./configure --with-php-config=/Applications/MAMP/bin/php/php7.3.24/bin/php-config</li>
  </ol>
  <p>As soon as i hit enter it starts doing it's stuff until it says:</p>
  <pre><code>configure: error: GNU MP Library version 4.2 or greater required.
  </code></pre>
  <p>Once i managed to solve this somehow but i really don't know how i did it. I can only remember of downloading the gmp .tar from the official website <a href="https://gmplib.org/#DOWNLOAD" rel="nofollow noreferrer">https://gmplib.org/#DOWNLOAD</a> but then nothing works.</p>
  <p>Let me say that i'm a total noob with those ./configure, make and make install stuff. I don't even know what is going on so all i did was random launching hoping something good could happen:</p>
  <p>What i've tried after downloading the official .tar is entering the folder and go with:</p>
  <ol>
  <li>./configure</li>
  <li>make &amp;&amp; make check &amp;&amp; make install</li>
  </ol>
  <p>I've also tried to do:</p>
  <pre><code>export CPPFLAGS=&quot;-I/usr/local/Cellar/gmp/include&quot;
  export LDFLAGS=&quot;-L/usr/local/Cellar/gmp/lib&quot;   
  </code></pre>
  <p>as <a href="https://askubuntu.com/questions/386315/how-to-add-libraries-path-to-the-configure-command">suggested here</a> but nothing changed. I even tried to add --prefix=/usr/local/Cellar to the ./configure command but no luck.</p>
  <p>This all story is related <a href="https://stackoverflow.com/questions/68284808/gmp-php-extension-mamp-pro?noredirect=1#comment120843576_68284808">to this other question</a> of me where i was trying to go on with the issue when the ./configure was still working. Now it's like i went backwards.</p>
  <p>Sidenote: i guess it all changed when i fired brew doctor, and brew cleanup. It must have destroyed something i made that brought me back to this state</p>