Hi, I've installed openmpi on a workstation running Ubuntu 14.04.3 LTS.
Logged in as root I can compile using mpif90 and run the programs using mpirun. Logged in as a regular user I can compile using mpif90, but cannot run the programs using mpirun (or mpiexec). The error messages are: brant.abbott@rust:~/Downloads/openmpi-1.10.0/examples$ mpif90 hello_usempi.f90 -o mainmpi brant.abbott@rust:~/Downloads/openmpi-1.10.0/examples$ mpirun -np 2 mainmpi /opt/intel/composer_xe_2013.2.146/mpirt/bin/intel64/mpirun: 96: .: Can't open /opt/intel/composer_xe_2013.2.146/mpirt/bin/intel64/mpivars.sh brant.abbott@rust:~/Downloads/openmpi-1.10.0/examples$ mpiexec -np 2 mainmpi mpiexec_rust: cannot connect to local mpd (/tmp/mpd2.console_brant.abbott); possible causes: 1. no mpd is running on this host 2. an mpd is running but was started without a "console" (-n option) However logged in as root: brant.abbott@rust:~/Downloads/openmpi-1.10.0/examples$ su Password: root@rust:/home/brant.abbott/Downloads/openmpi-1.10.0/examples# mpirun -np 4 mainmpi Hello, world, I am 1 of 4: Hello, world, I am 2 of 4: Hello, world, I am 0 of 4: Hello, world, I am 3 of 4: root@rust:/home/brant.abbott/Downloads/openmpi-1.10.0/examples# mpiexec -np 4 mainmpi Hello, world, I am 0 of 4: Hello, world, I am 1 of 4: Hello, world, I am 2 of 4: Hello, world, I am 3 of 4: root@rust:/home/brant.abbott/Downloads/openmpi-1.10.0/examples# I saw this thread: http://www.open-mpi.org/community/lists/users/2010/03/12291.php and tried reinstalling using ./configure --prefix=/usr/local --disable-pty-support at the appropriate step. However, I still have the problem. Does anyone know the solution? Many Thanks!