# Error in bulid MPI

**URL:** <https://discourse.julialang.org/t/error-in-bulid-mpi/43948>\
**Category:** General Usage\
**Tags:** mpi\
**Created:** [July 30, 2020, 4:15am UTC](https://discourse.julialang.org/t/error-in-bulid-mpi/43948 "2020-07-30T04:15:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![christmas\_jones](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christmas_jones/32/29540_2.png) [@christmas\_jones](https://discourse.julialang.org/u/christmas_jones)\
**Post date:** [July 20, 2022, 6:38pm UTC](https://discourse.julialang.org/t/error-in-bulid-mpi/43948/5 "2022-07-20T18:38:41Z")

</div>

Hi,  
This might help, I was having similar issues recently:

> [@Error building MPI---ERROR: LoadError: libmpi could not be found](https://discourse.julialang.org/t/error-building-mpi-error-loaderror-libmpi-could-not-be-found/65016/4):
>
> Thanks for this, this was bugging me for ages (on Mac M1, julia 1.8). I found I also had to set the library path for it to not throw the error about libmpi. For me, I had MPI installed via homebrew, and the following steps worked (in case anyone else had similar issues): export JULIA\_MPI\_PATH=/opt/homebrew/Cellar/open-mpi/4.1.4 export JULIA\_MPI\_LIBRARY=/opt/homebrew/Cellar/open-mpi/4.1.4/lib/libmpi julia -e 'ENV["JULIA\_MPI\_BINARY"]="system"; using Pkg; Pkg.build("MPI"; verbose=true)' This resu…

BTW, are your lib files there an alias or executable? On Mac you can do ‘show original’ for alias files (and I assume similar on linux). As far as I could tell, the JULIA\_MPI\_LIBRARY path should be to the executable (for me there is a libmpi.40.dylib executable file in the directory I linked).

---

_[View the full topic](https://discourse.julialang.org/t/error-in-bulid-mpi/43948)._
