# MPI Configuration

**URL:** <https://discourse.julialang.org/t/mpi-configuration/71968>\
**Category:** General Usage\
**Tags:** mpi, configuration\
**Created:** [November 23, 2021, 7:33pm UTC](https://discourse.julialang.org/t/mpi-configuration/71968 "2021-11-23T19:33:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spasmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/spasmann/32/31019_2.png) [@spasmann](https://discourse.julialang.org/u/spasmann)\
**Post date:** [November 23, 2021, 7:33pm UTC](https://discourse.julialang.org/t/mpi-configuration/71968/1 "2021-11-23T19:33:15Z")

</div>

Hello,

I’m trying to configure MPI.jl. I installed OpenMPI according to these instructions:  
[https://wiki.helsinki.fi/display/HUGG/Open+MPI+install+on+Mac+OS+X](https://wiki.helsinki.fi/display/HUGG/Open+MPI+install+on+Mac+OS+X)

I’ve confirmed that `/usr/local/bin` is in $PATH. Then I followed this page to try and configure MPI:  
[https://juliaparallel.github.io/MPI.jl/stable/configuration/](https://juliaparallel.github.io/MPI.jl/stable/configuration/)  
but when I run  
`julia --project -e ‘ENV[“JULIA\_MPI\_BINARY”]=“system”; using Pkg; Pkg.build(“MPI”; verbose=true)’

It gives me the error:

```julia
   Building MPI → `~/.julia/packages/MPI/biSVL/deps/build.log`
[ Info: using system MPI
ERROR: LoadError: libmpi could not be found
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] top-level scope at /Users/sam/.julia/packages/MPI/biSVL/deps/build.jl:76
 [3] include(::String) at ./client.jl:457
 [4] top-level scope at none:5
in expression starting at /Users/sam/.julia/packages/MPI/biSVL/deps/build.jl:64
┌ Error: Error building `MPI`: 
└ @ Pkg.Operations /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:949

```

It seems others have this problem and fix it by adding something to the /.bash\_profile like

```julia
export JULIA_MPI_PATH=/usr/local/

```

But I am still getting the same error when I try to build MPI. I’m not sure if the symbolic link is pointing to the right folder? I’m not sure what I’m looking for.

Any help would be appreciated! Thanks!
