Error installing cmdstan

I’m following the other post: Building cmdstan 2.20 with mpi enabled on Linux

I tried creating a file make/local and then adding:
STAN_MPI=true
CXX=mpicxx
TBB_CXX_TYPE=gcc

But that didn’t work, I got
bash: mpicxx: command not found

So I edited the local file:
STAN_MPI=true
CXX=g++
TBB_CXX_TYPE=gcc

and made it most of the way through the build process until:
g++ -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/lemoinelab2/miniconda3/include -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-delete-non-virtual-dtor -I stan/lib/stan_math/lib/tbb_2019_U8/include -O3 -I src -I stan/src -I lib/rapidjson_1.1.0/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.7 -I stan/lib/stan_math/lib/boost_1.72.0 -I stan/lib/stan_math/lib/sundials_5.2.0/include -fPIC -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/lemoinelab2/miniconda3/include -DBOOST_DISABLE_ASSERTS -DSTAN_MPI -c -o stan/lib/stan_math/stan/math/prim/functor/mpi_cluster_inst.o stan/lib/stan_math/stan/math/prim/functor/mpi_cluster_inst.cpp
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/mpi/allocator.hpp:15,
from stan/lib/stan_math/stan/math/prim/functor/mpi_cluster.hpp:8,
from stan/lib/stan_math/stan/math/prim/functor/mpi_cluster_inst.cpp:3:
stan/lib/stan_math/lib/boost_1.72.0/boost/mpi/config.hpp:20:10: fatal error: mpi.h: No such file or directory
20 | #include <mpi.h>
| ^~~~~~~
compilation terminated.
: recipe for target ‘stan/lib/stan_math/stan/math/prim/functor/mpi_cluster_inst.o’ failed
make: *** [stan/lib/stan_math/stan/math/prim/functor/mpi_cluster_inst.o] Error 1