Configuring, Making, and Installing


Up: Quick Start Next: Running examples Previous: Downloading mpich

Before you can use mpich, you must configure and make it. For the ch_p4mpd device, you must also install it. The configuration process analyzes your system and determines the correct options and settings; it also creates the Makefiles that are used to make mpich.

    1. Decide where you want to install mpich. This step is not strictly necessary (except in the case of the ch_p4mpd device); however, installing mpich (which can be done without any privilages in a user directory) both makes it easier to manage updates to mpich and allows you to reduce the amount disk space that mpich takes up, since the installed version contains only the libraries, header files, documentation, and supporting programs. We recommend an install path that contains the version number of mpich. For example, if you are installing mpich for others to use, and you have the required access rights, you could choose /usr/local/mpich-1.2.5/. If you are installing it just for your own use, you could use something like /home/me/software/mpich-1.2.6.


    2. Invoke configure with the appropriate prefix and specify the ch_p4mpd device:

        % ./configure --with-device=ch_p4mpd --prefix=/usr/local/mpich-1.2.6 
    
    Section Configure options discusses the options that can be given to configure to customize mpich.

    The output of configure is piped to tee; this program both writes the output to the file specified by its argument (here c.log) and to standard output. If you have trouble with the configure or make step, the file c.log will help identify any problems.


    3. Make mpich:

        % make |& tee make.log 
    
    This may take a while, depending on the load on your system and on your file server, it may take anywhere from a few minutes to an hour or more.


    4. For the ch_p4mpd device, you now need to do

        make install 
    
    Then it will be convenient to add the bin subdirectory of the install directory to your PATH. This will make available the commands for building programs, running them, and for managing the mpd daemons. For many shells, you can do this with
        setenv PATH <installdir>/bin:$PATH 
    



Up: Quick Start Next: Running examples Previous: Downloading mpich