Compiling Source Distribution

If you have not taken a precompiled version, you will require:

Then do the following check (this if for the bash shell; if you are using tcsh amend appropriately):
  1. Set the main FSL environment variable:
    export FSLDIR=<??wherever fsl is unpacked??>
    e.g. export FSLDIR=/usr/local/fsl 
    
  2. Then source the FSL environment setup script:
    . ${FSLDIR}/etc/fslconf/fsl.sh
  3. Then check if your machine/compiler is supported by default:
    ls $FSLDIR/config/$FSLMACHTYPE
    
If the above directory does not exist (the ls returns an error): Once this test is done then the sources can be built simply by doing:
cd $FSLDIR
./build

If you want to re-make a particular package in $FSLDIR/src (e.g. flirt) then first set the FSLDEVDIR environment variable to the same as FSLDIR and then just type make install inside the relevant directory.