(base) baobeibeixiaoshitou@xiatiandeMacBook-Pro ~ % cd ~/Downloads
bash install_sct-6.1_macos.sh
*******************************
* Welcome to SCT installation *
*******************************
Checking OS type and version...
Darwin xiatiandeMacBook-Pro.local 20.6.0 Darwin Kernel Version 20.6.0: Thu Jun 8 22:36:09 PDT 2023; root:xnu-7195.141.49.701.4~1/RELEASE_X86_64 x86_64
ProductVersion: 11.7.8
Checking requirements...
OK!
Source files not present. Downloading source files (@ 6.1) to /var/folders/yr/x_rmsgcx1tx93wnh1jnnz1kr0000gp/T/tmp.KlZEMOyZ/spinalcordtoolbox.
Cloning into '/var/folders/yr/x_rmsgcx1tx93wnh1jnnz1kr0000gp/T/tmp.KlZEMOyZ/spinalcordtoolbox'...
fatal: unable to access 'https://github.com/spinalcordtoolbox/spinalcordtoolbox.git/': Failed to connect to github.com port 443 after 75707 ms: Couldn't connect to server
Installation failed!
Please find the file "/Users/baobeibeixiaoshitou/Downloads/install_sct_log.txt",
then upload it as a .txt attachment in a new topic on SCT's forum:
--> http://forum.spinalcordmri.org/c/sct
(base) baobeibeixiaoshitou@xiatiandeMacBook-Pro Downloads % cd ~/Downloads
bash install_sct-<version>_macos.sh
Hi @DeshengKong,
The installation appears to have failed due to internet connectivity issues. (The install script failed to download SCT’s source code from our project’s repository.) This can happen because of a poor internet connection but also due to e.g. firewall issues / country geo-blocking, etc.
There are a number of things that you can try:
- Retry the script (just in case it was a one-time internet connection issue)
- If that doesn’t work, you can download the source code manually (https://github.com/spinalcordtoolbox/spinalcordtoolbox/archive/refs/tags/6.1.zip) and then
cd
into the folder, then run./install_sct
. (This avoids the need for the script to automatically download the code, since the files are already present.)
Kind regards,
Joshua
Thank you, I installed it successfully