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

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 got gmp 5.0.1

Then I downloaded the source code for PHP 5.3.6, then I will go to

Source / internal / GMF

I did

phpize

and then

MACOSX_DEPLOYMENT_TARGET = 10.6 CFLAGS = '- O3 -fno-common -arch i386 -arch x86_64' LDFLAGS = '- O3 -arch i386 -arch x86_64' CXXFLAGS = 'O3 -fno-common -arch i386 -arch x86_64'. / configure --with-PHP configurations = / Developer / SDKs / MacOSX10.6.sdk / USR / bin / PHP configurations; make -j6; sudo make install

And he gave me this message:

check for GNU MP support ... yes, joint check __gmp_randinit_lc_2exp_size in -lgmp ... no check for gmp_randinit_lc_2exp_size in -lgmp ... no configure: error: GNU MP library requires version 4.1.2 or higher. make: * There are no goals and no makefile found. Stop.

Any idea how to enable php-gmp without macports on Mac OSX 10.6.6? thanks

+4
source share
2 answers

If you have homebrew-php installed , click now you can:

 $ brew install php55 --with-gmp 
+5
source

Php-gmp is not compatible with GMP 5.0.1. This is a known bug reported by bugs.php.net over a year ago. Check the error comments to see if there is a workaround that works for you. If not, and if homebrew does not have a GMP 4.x package that you can install instead, I think you are stuck in manually creating a copy of GMP 4.x .: - (

+1
source

Source: https://habr.com/ru/post/1235074/


All Articles