问题
I am trying to install open MPI version 1.6.5 on a freshly installed Ubuntu 14.04 LTS. I do it as described here and here. For the installation I use following commands:
- Install C/C++ Compiler and openmpi-bin:
root#: apt-get install build-essential openmpi-bin
- Download and unpack:
root#: wget https://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.5.tar.gz root#: tar -xf openmpi-1.6.5.tar.gz -C /opt root#: chown root:root /opt/openmpi-1.6.5
- Configure installation file and install it:
root#: cd /opt/openmpi-1.6.5 root#: ./configure --prefix=/opt/openmpi root#: make all install
- Export Environment Variables:
export PATH=$PATH:/opt/openmpi/bin export LD_LIBRARY_PATH=/opt/openmpi/lib
IMO I didn't miss any of the installation steps. But when I try to run the usual tests on the local host (i.e. 'zeus' in my case) i get following results:
root#: mpirun hostname
Outputs the right hostname, in my case 'zeus'root#: mpirun hello_c
-------------------------------------------------------------------------- mpirun was unable to launch the specified application as it could not find an executable: Executable: hello_c Node: zeus while attempting to start process rank 0. --------------------------------------------------------------------------
Same for
root#: mpirun ring_c
What did I miss?
来源:https://stackoverflow.com/questions/36334388/installing-open-mpi-and-or-executing-hello-c-ring-c-fails