# Support for php GMP extension

**URL:** <https://community.localwp.com/t/support-for-php-gmp-extension/40750>\
**Category:** Support\
**Tags:** mac\
**Created:** [January 8, 2024, 8:20pm UTC](https://community.localwp.com/t/support-for-php-gmp-extension/40750 "2024-01-08T20:20:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jquiroz](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jquiroz](https://community.localwp.com/u/jquiroz)\
**Post date:** [January 8, 2024, 8:20pm UTC](https://community.localwp.com/t/support-for-php-gmp-extension/40750/1 "2024-01-08T20:20:58Z")

</div>

### What issue or error are you experiencing?

I have a site that requires the GMP core extension - [PHP: GMP - Manual](https://www.php.net/manual/en/book.gmp.php)  
I’m unable to get this installed for local app.

* * *

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

I’m aware of guidance for PECL extensions ([How do I compile additional PHP extensions?](https://community.localwp.com/t/how-do-i-compile-additional-php-extensions/2272)) however I am not seeing any support on how to go about enabling core extensions like GMP.

Here is a related item with no resolution:

> [@Support for php intl extension](https://community.localwp.com/t/support-for-php-intl-extension/18443/2):
>
> Notes: I’m using MACOS. Just in case you’re asking, I did look at the compile threads in this community. They don’t work anymore on MACOS.

* * *

### System Details

- **Local Version:**  
Version 8.2.0+6554

- **Operating System (OS) and OS version:**  
MacOS Ventura 13.5

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))

* * *

_ **Security Reminder** _  
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

---

<div class="post-metadata">

**Author:** ![austinwendt](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/austinwendt/32/13912_2.png) [@austinwendt](https://community.localwp.com/u/austinwendt)\
**Post date:** [January 9, 2024, 3:39pm UTC](https://community.localwp.com/t/support-for-php-gmp-extension/40750/2 "2024-01-09T15:39:24Z")

</div>

Hey @jquiroz - thanks for reaching out!

We don’t compile GMP with our PHP versions - we use `bcmath` instead. Can you tell me more about how your site is using GMP? Is there a reason you need GMP and can’t leverage another math package like `bcmath`?

Those older instructions for enabling PHP extensions are outdated and probably don’t work. On the thread you linked - `intl` has been added to all of our PHP versions, but we should clean up the old post. Thanks for finding that!

Adding GMP though should be relatively straightforward - I can turn this into a feature request and ask the engineering team to take a look!

---

<div class="post-metadata">

**Author:** ![jquiroz](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jquiroz](https://community.localwp.com/u/jquiroz)\
**Post date:** [January 9, 2024, 4:17pm UTC](https://community.localwp.com/t/support-for-php-gmp-extension/40750/3 "2024-01-09T16:17:34Z")

</div>

Hello thank you for the prompt response!

Yes I need GMP because bcmath does not have a gcd alternative → [PHP: gmp\_gcd - Manual](https://www.php.net/manual/en/function.gmp-gcd.php)

Thank you for any effort to include GMP by default - in the meantime is there any guidance for me to enable this?

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [April 8, 2024, 4:18pm UTC](https://community.localwp.com/t/support-for-php-gmp-extension/40750/4 "2024-04-08T16:18:26Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
