Installation

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

Коментарии

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.
2008-12-31 01:48:00
http://php5.kiev.ua/manual/ru/gmp.installation.html
Автор:
Under Windows you will need to uncomment the line

;extension=php_gmp.dll

within the php.ini and restart Apache.
2009-03-02 13:49:39
http://php5.kiev.ua/manual/ru/gmp.installation.html
Автор:
With PHP 5.3 on Windows, you need to use the VC9 build, otherwise you will not have the dll to enable GMP
2009-08-24 15:40:46
http://php5.kiev.ua/manual/ru/gmp.installation.html
on ubuntu you can get it from Synaptic Package Manager
just search words "gmp",you'll find it.
2011-10-04 00:18:32
http://php5.kiev.ua/manual/ru/gmp.installation.html
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.
2013-04-01 18:07:31
http://php5.kiev.ua/manual/ru/gmp.installation.html
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.
2013-05-04 12:41:44
http://php5.kiev.ua/manual/ru/gmp.installation.html
on Ubuntu Server:

sudo apt-get install libgmp-dev
sudo apt-get install php5-gmp
sudo service apache2 reload
2013-12-28 22:45:22
http://php5.kiev.ua/manual/ru/gmp.installation.html
Simple run:
   sudo apt install php7.0-gmp
2016-11-10 22:00:40
http://php5.kiev.ua/manual/ru/gmp.installation.html
Under Windows you will need to un-comment the line in your php.ini file

;extension=gmp

within the php.ini and restart Apache.
2019-02-08 09:51:41
http://php5.kiev.ua/manual/ru/gmp.installation.html
ubuntu 

sudo apt install php-gmp
2020-06-26 14:07:34
http://php5.kiev.ua/manual/ru/gmp.installation.html
Автор:
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 all.
2021-10-23 12:03:11
http://php5.kiev.ua/manual/ru/gmp.installation.html

    Поддержать сайт на родительском проекте КГБ