安装/配置
在线手册:中文 英文
PHP手册

安装

In order to have these functions available, you must compile PHP with GMP support by using the --with-gmp option.


安装/配置
在线手册:中文 英文
PHP手册
PHP手册 - N: 安装

用户评论:

admin at ee-dd dot com (04-Oct-2011 05:18)

on ubuntu you can get it from Synaptic Package Manager
just search words "gmp",you'll find it.

MiquelFire (24-Aug-2009 08:40)

With PHP 5.3 on Windows, you need to use the VC9 build, otherwise you will not have the dll to enable GMP

Chris (02-Mar-2009 07:49)

Under Windows you will need to uncomment the line

;extension=php_gmp.dll

within the php.ini and restart Apache.

arancaytar dot ilyaran at gmail dot com (31-Dec-2008 07:48)

Note that this parameter requires a path, as in --with-gmp=DIR, if gmp is installed in a non-standard location, which is almost always the case when you are building your own PHP installation in your home directory.

Obvious, but it's an easy mistake.