# Juno in Mac OS: mkdir: Permission denied

**URL:** https://discourse.julialang.org/t/juno-in-mac-os-mkdir-permission-denied/17310
**Category:** New to Julia
**Created:** [November 8, 2018, 3:22pm UTC](https://discourse.julialang.org/t/juno-in-mac-os-mkdir-permission-denied/17310 "2018-11-08T15:22:41Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Eric\_Chen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eric_chen/32/5992_2.png) [@Eric\_Chen](https://discourse.julialang.org/u/Eric_Chen)
#### Post date: [November 8, 2018, 3:22pm UTC](https://discourse.julialang.org/t/juno-in-mac-os-mkdir-permission-denied/17310/1 "2018-11-08T15:22:41Z")

</div>

I installed JuliaPro 1.0.1 with Mac OS Mojave. I get this error when i start Juno IDE and Julia  
looks like permission issue but donno how to fix? thank you

 ![56](https://global.discourse-cdn.com/julialang/original/3X/e/6/e6c38b898b26036296c309bf34d515619fc473c2.png)  
 ![56](https://global.discourse-cdn.com/julialang/original/3X/e/6/e6c38b898b26036296c309bf34d515619fc473c2.png) ![56](https://global.discourse-cdn.com/julialang/original/3X/e/6/e6c38b898b26036296c309bf34d515619fc473c2.png)  
ERROR: SystemError (with /Users/Evveric/.julia/logs): mkdir: Permission denied  
Stacktrace:  
[1] #systemerror#39(::String, ::Function, ::Symbol, ::Bool) at /Applications/JuliaPro-1.0.1.1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?  
[2] #mkdir#7(::UInt16, ::Function, ::String) at /Applications/JuliaPro-1.0.1.1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?  
[3] #mkdir at ./none:0 [inlined]  
[4] #mkpath#8(::UInt16, ::Function, ::String) at ./file.jl:212  
[5] mkpath at ./file.jl:207 [inlined]  
[6] setup\_interface(::REPL.LineEditREPL, ::Bool, ::Union{Dict, Array{#s561,1} where #s561\<:Dict}) at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/REPL/src/REPL.jl:843  
[7] #setup\_interface#47(::Bool, ::Union{Dict, Array{#s560,1} where #s560\<:Dict}, ::Any, ::REPL.LineEditREPL) at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/REPL/src/REPL.jl:759  
[8] setup\_interface at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/REPL/src/REPL.jl:759 [inlined]  
[9] (::getfield(Pkg, Symbol(“##1#2”)))(::REPL.LineEditREPL) at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/Pkg.jl:343  
[10] \_\_atreplinit(::REPL.LineEditREPL) at ./client.jl:307  
[11] #invokelatest#1 at ./essentials.jl:697 [inlined]  
[12] invokelatest at ./essentials.jl:696 [inlined]  
[13] \_atreplinit at ./client.jl:314 [inlined]  
[14] macro expansion at ./logging.jl:310 [inlined]  
[15] (::getfield(Base, Symbol(“##719#721”)){Bool,Bool,Bool,Bool})(::Module) at ./client.jl:342  
[16] run\_main\_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at /Applications/JuliaPro-1.0.1.1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?  
[17] exec\_options(::Base.JLOptions) at /Applications/JuliaPro-1.0.1.1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?  
[18] \_start() at /Applications/JuliaPro-1.0.1.1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?

[ Info: Disabling history file for this session  
julia\> versioninfo()  
Julia Version 1.0.1  
Commit 0d713926f8 (2018-09-29 19:05 UTC)  
Platform Info:  
OS: macOS (x86\_64-apple-darwin14.5.0)  
CPU: Intel(R) Core™ i5-5675R CPU @ 3.10GHz  
WORD\_SIZE: 64  
LIBM: libopenlibm  
LLVM: libLLVM-6.0.0 (ORCJIT, broadwell)  
Environment:  
JULIA\_EDITOR = atom -a  
JULIA\_NUM\_THREADS = 4  
JULIA\_PKG\_SERVER = [https://pkg.juliacomputing.com/](https://pkg.juliacomputing.com/)  
JULIA\_PKG\_TOKEN\_PATH = /Users/XXX/.julia/token.toml

julia\>

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [November 8, 2018, 3:31pm UTC](https://discourse.julialang.org/t/juno-in-mac-os-mkdir-permission-denied/17310/2 "2018-11-08T15:31:21Z")

</div>

`~/.julia` is being created with the wrong owner during the installation – I think you should be able to fix this with

```julia
$ sudo chown -R Evveric ~/.julia

```

---

<div class="post-metadata">

### Author: ![GavinMcMeeking](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gavinmcmeeking/32/5994_2.png) [@GavinMcMeeking](https://discourse.julialang.org/u/GavinMcMeeking)
#### Post date: [November 8, 2018, 6:28pm UTC](https://discourse.julialang.org/t/juno-in-mac-os-mkdir-permission-denied/17310/3 "2018-11-08T18:28:16Z")

</div>

Thanks, I had same issue and this seems to have done the trick.

---

<div class="post-metadata">

### Author: ![Eric\_Chen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eric_chen/32/5992_2.png) [@Eric\_Chen](https://discourse.julialang.org/u/Eric_Chen)
#### Post date: [November 9, 2018, 1:30pm UTC](https://discourse.julialang.org/t/juno-in-mac-os-mkdir-permission-denied/17310/4 "2018-11-09T13:30:05Z")

</div>

thank you! indeed it solved all issue!

---

<div class="post-metadata">

### Author: ![Kuon](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@Kuon](https://discourse.julialang.org/u/Kuon)
#### Post date: [June 26, 2019, 6:01pm UTC](https://discourse.julialang.org/t/juno-in-mac-os-mkdir-permission-denied/17310/5 "2019-06-26T18:01:14Z")

</div>

Many thanks! I have been encountering similar problems when trying to install a number of julia packages. If I use sudo for installation, I have to run `sudo julia` all the time to load that package, or I would get a Permission error, which can be quite annoying.

---

<div class="post-metadata">

### Author: ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)
#### Post date: [April 27, 2020, 7:45am UTC](https://discourse.julialang.org/t/juno-in-mac-os-mkdir-permission-denied/17310/6 "2020-04-27T07:45:02Z")

</div>

I have seen this many times, where the fix is to run something like “$ sudo chown -R Evveric ~/.julia”. But I can not understand where I am supposed to run it? Is it in the REPL? in CMD? Or maybie in the “Run” window? Because none of them seem to work, with or without the “$”. So could you tell me where to run this command? I am running windows 10

---

<div class="post-metadata">

### Author: ![js135005](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/js135005/32/8219_2.png) [@js135005](https://discourse.julialang.org/u/js135005)
#### Post date: [April 27, 2020, 1:02pm UTC](https://discourse.julialang.org/t/juno-in-mac-os-mkdir-permission-denied/17310/7 "2020-04-27T13:02:28Z")

</div>

That line is a UNIX/Linux command and will not run in Windows. It changes the file ownership of everything in the directory tree.

---

<div class="post-metadata">

### Author: ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)
#### Post date: [April 27, 2020, 10:28pm UTC](https://discourse.julialang.org/t/juno-in-mac-os-mkdir-permission-denied/17310/8 "2020-04-27T22:28:40Z")

</div>

Alright, thanks a lot
