OS X Installation failure

I am trying to install MRtrix3 for the first time, and the package installation option seems to have an error out of the gate. Here is what I am seeing when I run the suggested terminal command:

allens-mbp:~ newtonat$ sudo bash -c "$(curl --insecure -fsSL https://raw.githubusercontent.com/MRtrix3/macos-installer/master/install)"

This installer will download MRtrix latest and install it to /usr/local/mrtrix3.

In addition it will:

* create symbolic links in /usr/local/bin to the binaries in /usr/local/mrtrix3/bin

* create symbolic links in /Applications to the app bundles in /usr/local/mrtrix3/bin

Are you sure you want to continue? [y/n] y

Downloading https://github.com/MRtrix3/mrtrix3/releases/download/latest/mrtrix3-macos-latest.tar.gz ...

ERROR: Download not sucessful ...

Furthermore, if I try accessing the specified .gz file directly in a browser, I get a ‘not found’ message. Any advice?

Dear Allen,

Thanks for letting us know!

I have just tested the installer on two macOS versions and with different versions of bash, and they all completed without a problem.

For some reason, when run on your computer, the installation script thinks it has to download https://github.com/MRtrix3/mrtrix3/releases/download/latest/mrtrix3-macos-latest.tar.gz instead of the correct https://github.com/MRtrix3/mrtrix3/releases/download/3.0.1/mrtrix3-macos-3.0.1.tar.gz.

To get to the bottom of this, could you provide us the following info:

  1. What version of macOS are you running? Please provide the output of:
sw_vers -productVersion
  1. What version of bash are you using? Please provide the output of:
bash -version
which bash
  1. What version of curl are you using? Please provide the output of:
curl -V
which curl

In the meanwhile, if you are eager to install mrtrix on your system, you can try the following:

  1. Download the installation script https://raw.githubusercontent.com/MRtrix3/macos-installer/master/install

  2. Edit the file install that you just downloaded with a text editor and change the second line to read tag=3.0.1. Note that if you downloaded the script with your web browser, it might be called install.txt instead.

  3. On the terminal, change to the directory where you downloaded the installation script, e.g. cd ~/Downloads

  4. Run the edited installation script: sudo bash install. Note that if you downloaded the script with your web browser, it might be called install.txt instead.

This might be a workaround for your problem, but it would still be good to get to the bottom of this using the information requested above!

Works for me too.

✗ sw_vers -productVersion
10.15.6
✗ bash -version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)
Copyright (C) 2007 Free Software Foundation, Inc.
✗ which bash
/bin/bash
✗ curl -V
which curl
curl 7.64.1 (x86_64-apple-darwin19.0) libcurl/7.64.1 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.39.2
Release-Date: 2019-03-27
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL UnixSockets
/usr/bin/curl

We could fall back to the github API in case of a download error (https://api.github.com/repos/mrtrix3/mrtrix3/releases/latest).

Hi @Allen_Newton,

In the meanwhile, we made some subtle changes to the installation script that might resolve your issue (you could try rerunning the installation instructions to see if it fixes your problem).

However, we are still eager to understand what exactly caused the issue, so we would be really grateful if you could provide us the information requested above.