Why do I get a permission denied error message referring to folder when installing MATLAB on Macbook?
Mostrar comentarios más antiguos
After installing the Matlab in macbook and run LeadDBS into it, I'm dealing with this problem:
bash: /Users/Documents/MATLAB/lead/ext_libs/ANTs/antsRegistration.maci64: Permission denied
bash: /Users/Documents/MATLAB/lead/ext_libs/ANTs/antsApplyTransforms.maci64: Permission denied
8 comentarios
Joyce Yamamoto
el 29 de Jul. de 2022
Jan
el 29 de Jul. de 2022
What exactly does "run LeadDBS" mean? The installer? The setup? The function?
Walter Roberson
el 29 de Jul. de 2022
Those are shared objects that need to be called from inside matlab, but instead they are being executed as if they were external executable programs or external shell scripts.
Arthur Buijink
el 29 de Dic. de 2022
@Joyce Yamamoto how did you solve this issue? I'm getting the same errors using Lead in Matlab R2021a on MacOs 13 Ventura:
.../lead/ext_libs/BRAINSTools/BRAINSFit.maci64: Permission denied
Is it running an installation script at the time? If so then it could be indicating that the script is trying to write to the indicated destinations in unusual ways, using I/O redirection directly within the shell script (if it was trying to copy or move a file into a destination that did not have write access, then the message would include "mv" or "cp")
Example that can cause a message of that type:
system('bash -c "echo > /Password.m"')
This kind of code would not typically appear inside a shell script, except for the case that some kind of output log file is being created to be appended to later. Code such as
system('bash -c "cp antsRegistration.maci64 ~/MATLAB/lead/ext_libs/ANTs/"')
would generate an error message that looked like
cp: /Users/Documents/MATLAB/lead/ext_libs/ANTs/antsRegistration.maci64: Permission denied
not bash:
yannick LONGUET
el 26 de Jun. de 2023
Did you solved the problem ?
I have exactly the same problem with Matlab2022b and lead DBS 2.6
yannick LONGUET
el 26 de Jun. de 2023
I found the answer, you can write :
system(['find "', ea_getearoot, '" -type f -name "*maci64" -exec chmod 755 {} \;']);
system(['find "', ea_getearoot, '" -type f -name "*maci64" -exec xattr -cr {} \;']);
system(['find "', fileparts(which('spm')), '" -type f -name "*maci64" -exec xattr -cr {} \;']);
system(['find "', ea_getearoot, '" -type d -name "*.app" -exec xattr -cr {} \;']);
in the command window
Qiong
el 23 de Ag. de 2023
@yannick LONGUET Thank you very much! This solves the problem perfectly.
Respuestas (0)
Categorías
Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!