Hi all,
I’m using MacBook and after the last update (Sequoia 15.3.1) when I try to open Julia I get the error:
" “julia” can’t be opened because Julia is not allowed to open documents in Terminal."
I believe this is related to security permissions, but I haven’t been able to find a solution.
Has anyone else encountered this issue and managed to resolve it?
But a .dmg file from the link you shared should also be fine. juliaup makes it easier to quickly switch Julia versions, so it would be easier to check if a different version perhaps does not have this problem.
Not sure if this tip will help in this particular circumstance, but…
When you get an error message from macOS related to security permissions, if you immediately open “System Settings…”, go to the “Privacy & Security” preference pane, and scroll down to the section that says “Security”, there will often be a message there mirroring the error you just got with a button you can click to grant the needed permissions.
Yes absolutely. It would be really good @suski if you’d edit your post since people will pick this up and encounter other errors in future related to “sudo installing” into the home folder. Also, never ever do sudo execution of any script on the internet, ever.
To sum up, there are two main ways of installing Julia on macOS:
Using juliaup, which is the recommended way and it’s the also the very first method at the top of the Download Julia page. It only requires to execute curl -fsSL https://install.julialang.org | sh in the terminal, no sudo!
Manually installing using the DMG image file, which might need you to go to the System Settings and grant additional access to the executable, as pointed above by @jballanc In my opinion, this method should be discouraged, unless people know what they are doing.
This still doesn’t work for me when I install from DMG - the system settings doesn’t show me an error message or a place where I can grant permissions to the application. juliaup doesn’t install the Julia.app Mac application itself into the /Applications folder as the DMG installer does, it just manages a local copy of the julia binary. The Mac app used to work and would launch the binary in a new Terminal window. What is the recommended way to get the Julia.app application itself to install and run from the Finder?
There are some misconceptions (probably related to bad documentation) about what you get when you install Julia. If you ask me, the DMG method is a total failure, it simply should not exist. People who want to develop code, need to be forced to use the terminal, at least to an extent, so that they understand what’s happening.
Installing Julia is totally easy and just like every other (terminal) application, it usually comes with (at least) one binary, which has to live in a folder that is listed in your PATH environment variable, since that is one of the places where your shell searches for when you type in something and press enter, like julia<enter>. Every serious developer has at least one terminal window open at all time: there is no need to create double-clickable-icons “to launch a language”. I think this is the root of all evil when it comes to newcomers. I could sing a song about Python IDLE…
The juliaup installer does everything for you. It downloads Julia in ~/.julia and modifies the shell configuration file so that future(!) shell processes (i.e. whenever you open a new terminal tab/window in future), the julia command is in your PATH and you will enter the Julia REPL when you run that command.
There is really not more magic going on and nobody should do anything else to install Julia on any system. This is just it, a single command in the terminal.
The DMG installation method is just a pain in the youknowhere and unfortunately it’s also the preferred method for people who are not comfortable with the terminal/shell, so it’s basically a double shot in both feet and knees. If I had something to say, I’d definitely remove the DMG distribution from the downloads page