Next: , Up: Installing MPRIA   [Index]


2.1 How to Install

For a generic installation of the MPRIA library, you have first to install a recent version of the GNU MP on your computer. You need a C compiler, preferably gcc, but any reasonable C compiler should work. And you need the standard Unix make command, plus some other standard Unix utility commands.

Then, in the MPRIA build directory, type the following commands.

  1. ./configure

    This will prepare the build and setup the options according to your system. You can give options to specify the install directories (instead of the default /usr/local), threading support, and so on. See the INSTALL file or the output of ‘./configure --help’ for detailed information, in particular if you get error messages.

  2. make

    This will compile MPRIA and create library files with respect to your platform and environment.

  3. make check

    This will make sure MPRIA was built correctly. If you get error messages, please send a bug report to ‘bug-mpria@gnu.org’. See Reporting Bugs, for information about reporting bugs.

  4. make install

    This will copy the C header file mpria.h to the ‘include’ directory /usr/local/include, the library files (as the share object file libmpria.so on GNU/Linux computers) to the ‘lib’ directory /usr/local/lib, possibly the file mpria.info to the ‘info’ directory /usr/local/share/info, and some other documentation files into the document folder /usr/local/share/doc/mpria (or, if you passed the --prefix option to configure, using the prefix directory given as argument to --prefix instead of /usr/local).