downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Runtime Configuration> <Requirements
[edit] Last updated: Fri, 17 May 2013

view this page in

Installation

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



Runtime Configuration> <Requirements
[edit] Last updated: Fri, 17 May 2013
 
add a note add a note User Contributed Notes Installation - [7 notes]
up
0
admin at ee-dd dot com
1 year ago
on ubuntu you can get it from Synaptic Package Manager
just search words "gmp",you'll find it.
up
0
Chris
4 years ago
Under Windows you will need to uncomment the line

;extension=php_gmp.dll

within the php.ini and restart Apache.
up
0
arancaytar dot ilyaran at gmail dot com
4 years ago
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.
up
-1
MiquelFire
3 years ago
With PHP 5.3 on Windows, you need to use the VC9 build, otherwise you will not have the dll to enable GMP
up
0
omagaldadze at yahoo dot com
15 days ago
On ArchLinux php 5.4.14-1 I had to uncomment the line

extension=gmp.so

in /etc/php/php.ini file.

Probably, restart of web server (e.g. Apache) is required if working from web.
up
0
mike dot mackintosh at angrystatic dot com
1 month ago
On Debian platforms, make sure you install the gmp development library first:

    sudo apt-get install libgmp-dev

Just like other extensions, you need the libs installed before php compile will gracefully complete.
up
-1
Jens-Erik
9 months ago
On MacPorts look for the PHP-GMP package:

  port list php*gmp*

and install it: e. g.

  sudo port -v install php54-gmp

 
show source | credits | stats | sitemap | contact | advertising | mirror sites