-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails when startup scripts are inaccessible (even if asked not to modify them) #920
Comments
Applications in mac (even Terminal) often need explicit user permission to modify "files and folders". It's hard to install software without modifying files. See https://support.apple.com/guide/mac-help/control-access-to-files-and-folders-on-mac-mchld5a35146/mac for a mediocre explanation. |
Yeah… I actually tried to put Terminal.app into the list of "Full Disk Access" apps, which (surprisingly!) didn't help, either. It's also not one of those special folders like |
Huh. I might have to walk that back a bit… I just nuked the VM and tried the My only guess is that in my previous attempt, before I tried to install There's still a bug in
That is, create an empty I've further tested that when |
I wonder whether this is a bug or a missing feature. I opened #935 to track this since this has stopped me from using juliaup on my new machine. |
While preparing setup instructions for a tutorial, I was trying to install
juliaup
on a fresh macOS installation (inside an UTM virtual machine, using the default/automatic installation image provided by Apple for a minimal, unconfigured install). The VM is running Snonoma 14.4.1.In the standard Terminal app, I tried to install
juliaup
with the recommendedcurl -fsSL https://install.julialang.org | sh
, keeping all the default options. The installation failed ("Juliainstaller had a problem and crashed"). The report file boils down toThis appears to be related to some kind of macOS security feature, as I get
permission denied
if I try to manually runtouch .bash_profile
in the terminal. Similarly, for other configuration files like~/.bashrc
and~/.zshrc
, althoughtouch random_file
works. Strangely, I haven't been able to find anything on Google about this issue. The only workaround I've found is to runto create the files. Once they exist, the
juliaup
installation runs through without any issues.In principle, I would expect the
juliaup
installer to work around any such macOS permission issues (potentially even by prompting for a sudo password).Strangely, the crash during the
juliaup
installation also occurs if I customize the installation to decline "Do you want to add the Julia binaries to your PATH by manipulating various shell startup scripts?".Even if
juliaup
cannot work around the permissions issue, that seems like bug! I would expect not to run into any kind of issue at all related to the startup files if I don't ask the installer to modify the startup file.The text was updated successfully, but these errors were encountered: