Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Installing GMP should be easy:

if you need it for a PHP application then you can just do this:

apt-get install php5-gmp

nano /etc/php5/apache2/php.ini

#add the following line to the ini file

Added to php.ini

#save and restart apache

service apache2 restart


If you need the latest build for any other reason do this:

the first thing I do is:

cd /

mkdir downloads

cd downloads

Get the tar from here

at the time of this article I used:


You will need lzip installed and dev tools


apt-get install build-essential gawk m4 gcc-multilib
apt-get install lzip
tar --lzip -xvf gmp-6.0.0a.tar.lz
cd gmp-

mkdir build && cd build
../configure --prefix=/usr/gcc_4_9 --build=x86_64-linux-gnu
make check
make install