1

So I am trying to use php-gmp methods on my mac, but I get the error "Call to undefined function gmp_init()".

I've seen this answer that is basically the same question, but the question/answer are outdated - for example, the suggested brew package is not an available formula at this time.

Community
  • 1
  • 1
johncorser
  • 9,262
  • 17
  • 57
  • 102

1 Answers1

0
brew install php56-gmp

Worked for me on php 5.6

php -i | grep gmp - to confirm

Don't forget to restart your webserver.

Henry
  • 7,721
  • 2
  • 38
  • 38