How to enable php-gmp on Mac OS X 10.6.6? (no macports)

后端 未结 2 769
广开言路
广开言路 2021-01-19 01:42

I want to enable my php-gmp and I don\'t want to use macports because I use homebrew.

First I

brew install gmp

and I go

相关标签:
2条回答
  • 2021-01-19 02:24

    Php-gmp is incompatible with GMP 5.0.1. This is a known bug, reported on bugs.php.net over a year ago. Check the comments on the bug to see if there's a workaround that works for you. If not, and if homebrew doesn't have a GMP 4.x package you can install instead, I think you're stuck building a copy of GMP 4.x manually. :-(

    0 讨论(0)
  • 2021-01-19 02:34

    If you have the homebrew-php tap installed, you can now do:

    $ brew install php55 --with-gmp
    
    0 讨论(0)
提交回复
热议问题