Linux version: ubuntu18.04
After installed the mpi, the installation process did not make a mistake, configure the environment variables, in ~/. Bashrc type:
Export MPI_ROOT=/usr/local/mpi
The export PATH=$MPI_ROOT/bin: $PATH
Export MANPATH=$MPI_ROOT/share/man: $MANPATH
Then look at some of the solutions,
Enter in the/etc/profile:
The export PATH=$MPI_ROOT/bin: $PATH
Or in the/etc/profile. D. mpi. To create a new file in sh, type the environment variables, are useless,
Which mpicc, which mpirun, which mpic++
Can display path, means that's not a matter of environment variable
As long as run is:
Mpicc: command not found
Mpif90: command not found
.
Don't know how to solve,, every brother please help
CodePudding user response:
Sudo apt - get the install mpiccHave a try?
CodePudding user response:
Hello, I recently also encounter this problem, I found I need in/root/bashrc add mpicc path, then the source/root/bashrc (these operations require root access), and then run was no problem, I think the program is run as root when it comes to and operate, but the root user and couldn't find mpicc, so lead to this problem, personal experiences, to tell the hope to help youCodePudding user response:
You are directly mounted to/usr/bin/belowCodePudding user response:
Emmmm, I was directly installed in/usr/local directory path, then in the/usr/local/bin can use directlyCodePudding user response:
Installed directly mpicc tools, search in baidu