Hello,
While installing the tool, I encountered some issues. After typing « bash install_sct-6.5_macos.sh », I got the following message and did not how to handle it:
« Installation failed!
Please find the file “/Users/mathilde/Downloads/install_sct_log.txt”,
then upload it as a .txt attachment in a new topic on SCT’s forum:
→ https://forum.spinalcordmri.org/c/sct »
I have put the files I used and the one .txt.
Thank you!
install_sct_log.txt (633 Bytes)
install_sct-6.5_macos.sh (26.5 KB)
It looks like there may be a permission issue with a file in your home directory, based on this line from the log:
install_sct-6.5_macos.sh: line 275: /Users/mathilde/.bash_profile: Permission denied
Could you run the following command in a terminal, and post the result, to see whether the file exists and what the permissions are?
echo $HOME/.bash* ; ls -ld $HOME $HOME/.bash_profile
Okay, thank you.
Here what I got:
(base) mathilde@MBP-de-Mathilde ~ % echo $HOME/.bash* ; ls -ld $HOME $HOME/.bash_profile
/Users/mathilde/.bash_profile
drwxr-x—+ 34 mathilde staff 1088 9 déc 16:22 /Users/mathilde
-rw-r–r-- 1 root staff 447 24 oct 10:55 /Users/mathilde/.bash_profile
Aha! It looks like this file (which normally contains some user settings) is owned by the admin account on your computer (named “root”), rather than your normal user (named “mathilde”).
Assuming you have admin access on this computer, you should be able to fix the file ownership with this command:
sudo chown mathilde:staff /Users/mathilde/.bash_profile