MPICH on ubuntu

Installation was relatively straightforward. Don’t unzip the source into the directory you want to install into. sudo the configure, make, and make install commands. Make sure the paths are set up for all compilers you want mpich to pick up. Add the /installdir/bin directory to the path in the system’s environment file (or however else you want to add it).



  1. paula said

    Hi! I’m trying to install MPICH2 on my ubuntu Feisty Fawn and It hasn’t been that straightforward for me. I intend to compile it using ifort, which is properly installed by now, but I keep on getting this message:

    checking for linker for Fortran main programs… configure: error: Could not compile Fortran test program

    when trying: sudo ./configure –prefix=/usr/bin

    Any idea of what it may be that I’m doing wrong?

    Thanks a lot!!!

  2. ac12 said

    Are you sure the ifort compiler is in your path? I know I had a bit of trouble getting this set up correctly – the best way to do this in ubuntu/debian seems to be to add the compiler’s bin directory (for the intel compiler this is probably something like /opt/intel/fc/version number/bin).

    Just adding or .csh to my .bashrc file didn’t work for me. Hope this helps – my installation is MPICH 1.2.7 so there might be some significant differences with MPICH2.

  3. juli said

    Running the Intel shell scripts is not enough to modify your PATH. What works to us is to

    This adds the right path to the compilers, and if you update them the path will be updated.

  4. Ganesh said

    Can you install MPICH on a single machine just to test the codes, code development etc ??

  5. ac12 said

    Yes you can, and it’s recommended by most supercomputing facilities that you do this.

  6. Akhil said

    i am trying to install mpich on kubuntu (compiler gfortran4.2 )but while compiling i am getting the message ‘mpich command not found’ ..I read about the need of a shared directory, in an article.anyone please describe me more about directory sharing and commands for that,for me being a novice.

    thank you.

  7. YAnsari said

    TEST This:

    $ locate ifort

    for my case: /opt/intel/Compiler/11.1/064/bin/intel64/ifort

    then type : export PATH=$PATH:/usr/sbin/:/opt/intel/Compiler/11.1/064/bin/intel64/

    it worked for me.

    • Akhil said

      Thank you very much sir.

      I already got some hands, and now its working smoothly.
      In fact i used the same commands, that you have just given.

      Thank you

RSS feed for comments on this post · TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: