我想启用我的php-gmp,我不想使用macports因为我使用自制软件.
首先,我
brew install gmp
我得到了gmp 5.0.1
然后我下载了PHP源码5.3.6,然后我去了
source/ext/gmp
我做到了
phpize
然后
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-config=/Developer/SDKs/MacOSX10.6.sdk/usr/bin/php-config;
make -j6;sudo make install
它给了我这个信息:
checking for GNU MP support… yes,
shared checking for
__gmp_randinit_lc_2exp_size in -lgmp… no checking for gmp_randinit_lc_2exp_size in -lgmp…
no configure: error: GNU MP Library
version 4.1.2 or greater required.
make: * No targets specified and no
makefile found. Stop.
知道如何在Mac OSX 10.6.6上启用没有macports的php-gmp吗?谢谢