En orden a de tener estas funciones disponibles, se tiene que compilar el PHP con apoyo de GMP por el uso de la opciĆ³n --with-gmp .

add a note add a note

User Contributed Notes 9 notes

oharry0535 at gmail dot com
1 year ago
Under Windows you will need to un-comment the line in your php.ini file


within the php.ini and restart Apache.
sean at crazyhorsecoding dot com
6 years ago
on Ubuntu Server:

sudo apt-get install libgmp-dev
sudo apt-get install php5-gmp
sudo service apache2 reload
arancaytar dot ilyaran at gmail dot com
11 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.
11 years ago
Under Windows you will need to uncomment the line


within the php.ini and restart Apache.
insign at gmail dot com
3 years ago
Simple run:
   sudo apt install php7.0-gmp
omagaldadze at yahoo dot com
7 years ago
On ArchLinux php 5.4.14-1 I had to uncomment the line

in /etc/php/php.ini file.

Probably, restart of web server (e.g. Apache) is required if working from web.
10 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
mike dot mackintosh at angrystatic dot com
7 years 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.
admin at ee-dd dot com
8 years ago
on ubuntu you can get it from Synaptic Package Manager
just search words "gmp",you'll find it.
To Top