GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers. There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface.

The main target applications for GMP are cryptography applications and research, Internet security applications, algebra systems, computational algebra research, etc.

cPanel is a web hosting control panel software developed by cPanel, LLC. It provides a graphical interface and automation tools designed to simplify the process of hosting a web site to the website owner or the “end user”. It enables administration through a standard web browser using a three-tier structure.

cPanel being the industry standard, GMP installations on this environment are of course being requested.

I managed to successfully install GMP on cPanel server by following these steps:

1:

cd /usr/local/src
wget https://gmplib.org/download/gmp/gmp-6.2.1.tar.lz
tar --lzip -tfgmp-6.2.1.tar.lz
cd gmp-6.2.1
./configure
make
make check
make install

2.

yum install gmp-devel

3.

nano /opt/cpanel/ea-phpXX/root/etc/php.d/gom.ini

replace ea-phpXX with the desired version of PHP

add:

--with-gmp

4.

/scripts/easyapache --build

 

 

Leave a Reply