FSL is available precompiled for the Linux and Mac OS X operating systems. Windows is supported via a Linux Virtual Machine. The sources are also available if you want to compile it yourself.
Make sure the following is present somewhere in your shell setup file (.bashrc, .profile, .cshrc etc., depending on what shell you use), changing "/usr/local/fsl" to wherever you have installed FSL:
bash / sh / ksh
FSLDIR=/usr/local/fsl
. ${FSLDIR}/etc/fslconf/fsl.sh
PATH=${FSLDIR}/bin:${PATH}
export FSLDIR PATH
tcsh / csh
setenv FSLDIR /usr/local/fsl
source ${FSLDIR}/etc/fslconf/fsl.csh
setenv PATH ${FSLDIR}/bin:${PATH}
To run the FSL tools from the command line, you can find the tools in $FSLDIR/bin. In general command-line programs are lower case (e.g. 'bet'). In general the GUI version is capitalised (e.g. 'Bet'), except on Mac, where '_gui' is appended because those file systems can't tell the difference between upper and lower case (e.g. 'Bet_gui').
To bring up a simple GUI which is just a menu of the main
individual FSL GUI tools, just type fsl.
There are several environment variables which FSL uses to determine certain user preferences, such as the output file format (NIFTI_GZ, NIFTI_PAIR, etc). The defaults for these are set when you source the setup file as shown above (i.e., ${FSLDIR}/etc/fslconf/fsl.sh or ${FSLDIR}/etc/fslconf/fsl.csh). If you wish to change these defaults then you need to:
cd mkdir .fslconf cd .fslconfand in this directory create a file called fsl.sh or fsl.csh, depending on the shell that you use, setting any or all of the variables that appear in the central ${FSLDIR}/etc/fslconf/fsl.sh or ${FSLDIR}/etc/fslconf/fsl.csh files.
DO NOT copy the central files into ~/.fslconf/ as it will cause a loop that will stop your login from working.
It is recommended that the files ~/.fslconf/fsl.sh or
~/.fslconf/fsl.csh only include a few variable definitions
and nothing more. Note that whoever installs FSL can also edit the
central files in $FSLDIR/etc/fslconf to change the
preferences for all users.