Error when installing

Hi, I tried to install MRtrix3 on MACOS, using command : sudo bash -c “$(curl -fsSL https://raw.githubusercontent.com/MRtrix3/macos-installer/master/install)”
. ERROR occurred: “Failed to connect to raw.githubusercontent.com port 443: Connection refused”.
I have checked the service was good. what can I do to solve this problem?

Dear Yunhao,

This looks like either a temporary network/service glitch or your internet provider blocking HTTPS connections.

Given that you have tested your connection, my guess is that you are in a country where the government blocks all https connections… If this is the case, you should be able install MRtrix using an unencrypted HTTP connection by removing the s from https in the command above.

EDIT: I just realized that internally, the installation script also uses HTTPS, so if an https block is indeed causing this, then I will have to modify the installer as well…

OK, I have modified the installer. Please try:

sudo bash -c "$(curl -fsSL http://raw.githubusercontent.com/MRtrix3/macos-installer/nohttps/install)"

and report back here. This will download everything using HTTP instead of HTTPS.

Thanks for your support, but I am afraid the new code doesn’t work still…

What happens if you try to access http://raw.githubusercontent.com/MRtrix3/macos-installer/nohttps/install in your web-browser?

No, we can not access.