Results 1 to 8 of 8

Thread: mpi install problem..help needed

  1. #1
    Join Date
    Jan 2008
    Location
    Zagreb,Croatia
    Beans
    25

    mpi install problem..help needed

    Hi,
    I want to install MPICH2 (on ubuntu)

    After this command:
    cd /home/ Desktop/ mpich2-1.0/ configure \
    -prefix=/home/ Desktop/mpich2-install 2>&1 | tee configure.log

    I have problems with next command
    make 2>&1 tee make.log

    Error: No rule to make target `tee'. Stop.

    sudo doesn't help here, cuz also when I try
    just make it says : No targets specified and no makefile found. Stop.

    Beauty is in small things...

  2. #2
    Join Date
    Sep 2007
    Location
    England
    Beans
    1,103

    Re: mpi install problem..help needed

    where are you getting these commands from?
    some tutorial somewhere?

  3. #3
    Join Date
    Jan 2008
    Location
    Zagreb,Croatia
    Beans
    25

    Re: mpi install problem..help needed

    Quote Originally Posted by amauk View Post
    where are you getting these commands from?
    some tutorial somewhere?
    yes tutorial
    Beauty is in small things...

  4. #4
    Join Date
    Jul 2008
    Beans
    201

    Re: mpi install problem..help needed

    Code:
    sudo apt-get install mpich-bin
    Wouldn't that work for you?
    EDIT: changed the command
    Last edited by karlr42; December 11th, 2008 at 03:21 PM.

  5. #5
    Join Date
    Jan 2008
    Location
    Zagreb,Croatia
    Beans
    25

    Re: mpi install problem..help needed

    Quote Originally Posted by karlr42 View Post
    Code:
    sudo apt-get install mpich
    Wouldn't that work for you?
    eh no,i tried...
    ill figure something out anyway..tnx
    Beauty is in small things...

  6. #6
    Join Date
    Jul 2008
    Beans
    201

    Re: mpi install problem..help needed

    What didn't work about it? It would be much easier than compiling from source.
    EDIT: I got the command wrong, try it now and see what happens
    Last edited by karlr42; December 11th, 2008 at 03:21 PM.

  7. #7
    Join Date
    Jan 2007
    Beans
    2

    Re: mpi install problem..help needed

    If you want to use MPICH to compile programs you should also install development libraries:

    Code:
    sudo apt-get install mpich-bin libmpich1.0-dev mpi-doc
    there is also the option of installing OpenMPI

    Code:
    sudo apt-get install openmpi-bin openmpi-doc libopenmpi-dev
    If you want to execute the code you have compiled on your Ubuntu machine, there is anyhow a problem: mpi programs need a lamboot enviroment to be executed, buth both mpich and openmpi won't run under the lamboot enviroment you can get via Ubuntu repositories.

    So the final solution to compile/run MPI programs is to install a complete LAM enviroment:

    Code:
    sudo apt-get install  lam-runtime lam4-dev lam-mpidoc
    If you need BOTH lam and mpich (for example to compile LAMMPS) , you should select the correct "mpirun" to run your parallel code (see LAMPPS in Ubuntu)

    cheers
    a
    Last edited by chianchiere; February 6th, 2009 at 02:28 PM. Reason: addendum

  8. #8
    Join Date
    Oct 2008
    Beans
    3

    Re: mpi install problem..help needed

    Download MPICH2 source code from http://www-unix.mcs.anl.gov/mpi/mpich .

    Extract .tar.bz2 file in /mirror. Also make a folder for MPICH installation.

    $ mkidr mpich2
    $ tar xvf mpich2-*1.0.5p3.tar.gz
    $ cd mpich2*-1.0.5p3
    for bash and sh:
    mpich2*-1.0.5p3$ ./configure --*prefix=/mirror/mpich2 2>&1 | tee c.txt
    mpich2*-1.0.5p3$ make 2>&1 | tee m.txt
    mpich2*-1.0.5p3$ sudo make install 2>&1 | tee mi.txt

    For more information about compilation see README file in source package.

    After successfully compiling and installing mpich, add these lines to ".bashrc/"
    PATH=/home/you/mpich2-install/bin:$PATH ; export PATH

    for csh and tcsh:
    mpich2*-1.0.5p3$ ./configure --*prefix=/mirror/mpich2 | tee c.txt
    mpich2*-1.0.5p3$ make | tee m.txt
    mpich2*-1.0.5p3$ sudo make install | tee mi.txt

    Add the bin subdirectory of the installation directory to your path:

    for csh and tcsh:

    setenv PATH /home/you/mpich2-install/bin:$PATH

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •