Here are the steps needed to install the library on Unix systems (more details are provided in the INSTALL file):
This will prepare the build and setup the options according to your system. If you get error messages, you might check that you use the same compiler and compile options as for GNU MP (see the INSTALL file).
This will compile MPFR, and create a library archive file libmpfr.a. A dynamic library may be produced too (see configure).
This will make sure MPFR was built correctly. If you get error messages, please report this to ‘mpfr@loria.fr’. (See Reporting Bugs, for information on what to include in useful bug reports.)
This will copy the files mpfr.h and mpf2mpfr.h to the directory /usr/local/include, the file libmpfr.a to the directory /usr/local/lib, and the file mpfr.info to the directory /usr/local/share/info (or if you passed the ‘--prefix’ option to configure, using the prefix directory given as argument to ‘--prefix’ instead of /usr/local).
There are some other useful make targets:
Create an info version of the manual, in mpfr.info.
Create a PDF version of the manual, in mpfr.pdf.
Create a DVI version of the manual, in mpfr.dvi.
Create a Postscript version of the manual, in mpfr.ps.
Create a HTML version of the manual, in several pages in the directory mpfr.html; if you want only one output HTML file, then type ‘makeinfo --html --no-split mpfr.texi’ instead.
Delete all object files and archive files, but not the configuration files.
Delete all files not included in the distribution.
Delete all files copied by ‘make install’.
In case of problem, please read the INSTALL file carefully before reporting a bug, in particular section “In case of problem”. Some problems are due to bad configuration on the user side (not specific to MPFR). Problems are also mentioned in the FAQ http://www.mpfr.org/faq.html.
Please report problems to ‘mpfr@loria.fr’. See Reporting Bugs. Some bug fixes are available on the MPFR 2.4.1 web page http://www.mpfr.org/mpfr-2.4.1/.
The latest version of MPFR is available from ftp://ftp.gnu.org/gnu/mpfr/ or http://www.mpfr.org/.