dqgg25493 2011-04-07 05:40
浏览 328

如何在Mac OS X 10.6.6上启用php-gmp? (没有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 PHP source 5.3.6, then I go to

source/ext/gmp

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-config=/Developer/SDKs/MacOSX10.6.sdk/usr/bin/php-config; make -j6;sudo make install

And it gave me this message:

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.

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

  • 写回答

2条回答 默认 最新

  • doukang5966907 2011-04-07 05:56
    关注

    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. :-(

    评论

报告相同问题?

悬赏问题

  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP