# MPI Permission denied

**URL:** <https://discourse.julialang.org/t/mpi-permission-denied/55760>\
**Category:** General Usage\
**Tags:** package, mpi\
**Created:** [February 22, 2021, 4:07am UTC](https://discourse.julialang.org/t/mpi-permission-denied/55760 "2021-02-22T04:07:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hideakiv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hideakiv/32/22193_2.png) [@hideakiv](https://discourse.julialang.org/u/hideakiv)\
**Post date:** [February 22, 2021, 4:07am UTC](https://discourse.julialang.org/t/mpi-permission-denied/55760/1 "2021-02-22T04:07:17Z")

</div>

I am using MPI.jl and call the file in the REPL as follows.

```julia
julia> mpiexec(cmd ->run(`$cmd -np 2 $(Base.julia_cmd()) $("script.jl")`))

```

Sometimes, I get back the following error:

```julia
ERROR: LoadError: SystemError: opening file "/Users/hideakv/.julia/compiled/v1.4/JuMP/DmXqY_uPVDl.ji": Permission denied

```

In other times, I get a similar error for different packages, like GLPK, Ipopt, etc.  
These packages are all included in script.jl.  
I am able to fix this by including these packages at the REPL, as in

```julia
julia> using JuMP, GLPK, Ipopt

```

However, I don’t see why this should work. What does it mean by “Permission denied”, and what is happening behind the code?

There was also a case where the permission was denied for MPI, which is odd because I cannot run mpiexec without including MPI. This inconsistency is also a mystery to me.

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [February 22, 2021, 9:34am UTC](https://discourse.julialang.org/t/mpi-permission-denied/55760/2 "2021-02-22T09:34:47Z")

</div>

> [@hideakiv](#):
>
> `ideakv/.juli`

Can you start with something simple, like running a command which ic  
ls -l /Users/hideakv/.julia/compiled/v1.4/JuMP/DmXqY\_uPVDl.ji
