Differences between revisions 17 and 18
Revision 17 as of 16:58:26 22-11-2022
Size: 2986
Editor: PaulMcCarthy
Comment:
Revision 18 as of 17:18:33 12-03-2023
Size: 3287
Editor: PaulMcCarthy
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
{{{#!wiki warning
'''Administrative privileges may be required'''

Installation into certain folders on your computer (e.g. the default, `/usr/local`) may require administrative privileges. If this is the case, the installer will attempt to gain these privileges through the use of the `sudo` command, which will require you to enter your password for verification. If you don't have permission to use `sudo` (an administration account on macOS) then the installer will fail and will need to either install into a folder belonging to your user or to run the installer as the `root` user. Should you install as `root` see the [[FslInstallation/ShellSetup|configuring your account for FSL]] section for details on how to use the installer to setup your user account for FSL.
}}}
Line 18: Line 13:
In the terminal change to the folder containing the fslinstaller.py file and run it with python; assuming that you wish to install into `/usr/local` (the default) then just press the Return key when the installer asks where to install to. For example if you downloaded to your `Downloads` folder: In the terminal change to the folder containing the `fslinstaller.py` file and run it with python; assuming that you wish to install into `~/fsl/` (the default) then just press the Return key when the installer asks where to install to. For example if you downloaded to your `Downloads` folder:
Line 26: Line 21:
Some systems ( e.g. OSX Monterey ) do not provide a "generic" python binary ( and will generate errors like `python: command not found` ). If this happens try calling `python3 fslinstaller.py` or `python2 fslinstaller.py`. Some systems ( e.g. macOS Monterey ) do not provide a "generic" python binary ( and will generate errors like `python: command not found` ). If this happens try calling `python3 fslinstaller.py` or `python2 fslinstaller.py`.   macOS Ventura does not have Python installed by default - if you do not have any Python command available, you may need to install Xcode by running `sudo xcode-select --install`.
Line 33: Line 30:

{{{#!wiki note
'''Installing FSL into a different location'''

By default, FSL is installed into your user account home directory (at `~/fsl/`), and so does not require administrative privileges. If you wish to install FSL to a different location (e.g. `/usr/local/fsl/`), or are installing FSL on a multi-user system, you may need to enter your administrator password before the installation can proceed. You can run the `fslinstaller.py` script as described above - the script will prompt you for your password when necessary.

If you do not have permission to use `sudo` then the installer will fail and you will need to either install into a folder belonging to your user or to run the installer as the `root` user. Should you install as `root`, see the [[FslInstallation/ShellSetup|configuring your account for FSL]] section for details on how to setup your user account for FSL.
}}}

FSL Install Script

The fslinstaller.py script carries out the installation of FSL, configuring your environment to enable you to run FSL from a terminal window (e.g. (/Applications/Utilities/Terminal.app on macOS). The fslinstaller,py source code can be viewed here.

Running the installer (on macOS or Linux)

The installer requires access to the internet to be able to download the FSL software appropriate for your platform and runs from within a terminal session, so you need to open a terminal:

  • Linux (Centos 7)
    • The Terminal application can be found in Applications > Utilities > Terminal menu

  • macOS
    • The Terminal application can be found in /Applications/Utilities

In the terminal change to the folder containing the fslinstaller.py file and run it with python; assuming that you wish to install into ~/fsl/ (the default) then just press the Return key when the installer asks where to install to. For example if you downloaded to your Downloads folder:

cd ~/Downloads
python fslinstaller.py

Some systems ( e.g. macOS Monterey ) do not provide a "generic" python binary ( and will generate errors like python: command not found ). If this happens try calling python3 fslinstaller.py or python2 fslinstaller.py.

macOS Ventura does not have Python installed by default - if you do not have any Python command available, you may need to install Xcode by running sudo xcode-select --install.

Once the install completes Linux users should log out (System (top right icon) > Log out) and log back in to complete the FSL setup. If you are accessing the Linux computer via a remote SSH session then close the SSH session and re-login. Apple macOS users should open a new terminal window to begin using FSL.

if you use Mathworks' MATLAB it will configure your startup.m file to allow you to use the FSL MATLAB functions.

Installing FSL into a different location

By default, FSL is installed into your user account home directory (at ~/fsl/), and so does not require administrative privileges. If you wish to install FSL to a different location (e.g. /usr/local/fsl/), or are installing FSL on a multi-user system, you may need to enter your administrator password before the installation can proceed. You can run the fslinstaller.py script as described above - the script will prompt you for your password when necessary.

If you do not have permission to use sudo then the installer will fail and you will need to either install into a folder belonging to your user or to run the installer as the root user. Should you install as root, see the configuring your account for FSL section for details on how to setup your user account for FSL.

Advanced Options

The installer has some advanced options which, amongst other things, allows you to:

  • customise the FSL installation location.
  • automate the FSL installation - this is useful if you would like to call the installer from an automated script.

Type python fslinstaller.py -h for a list of all available options.

 

FslInstallation/FslInstaller (last edited 11:05:41 04-08-2023 by PaulMcCarthy)