Although Ubuntu ships with its own implementation of the GNU Multiple Precision Arithmetic Library already installed, if you need the latest and most complete version of the software, you will need to download, compile and install it yourself. The compressed GMP archive contains all the source code and configuration utilities you need as well as a suite of demonstration programs you can build to test the libraries. ./configure If you need to install M4 or any other dependency, run the “./configure” command again. sudo make install GMP’s library files will be stored in the /usr/local/lib folder. The GMP library files that Ubuntu installs by default, however, remain /usr/lib/i386-linux-gnu/ on 32-bit systems or usr/lib/x86_64-linux-gnu/ on 64-bit systems. If a program you use needs the version of GMP you compiled, you will have to configure it to look for the libraries in the /usr/local/lib directory instead. Tips Warnings Writer Bio

How to Install GMP in Ubuntu  5 Steps  - 63