#include<mpi.h>时,编译提示没有那个文件或目录

#include<mpi.h>时,编译提示没有那个文件或目录
如果修改为 #include"/usr/loca/mpich/include/mpi.h" 再进行编译就能通过

请问各位帮忙解决一下问题

提示错误为:

test.cpp:3:16: 致命错误:mpi.h:没有那个文件或目录
#include<mpi.h>
^
编译中断。

虚拟机上已经安装了mpich,并且在.bashrc中配置了环境

mpich

export MPI_ROOT="/usr/local/mpich"
export PATH="$MPI_ROOT/bin:$PATH"
export MANPATH="$MPI_ROOT/man:$MANPATH"

mpiCC命令编译试试