Compiling Source Distribution

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

In addition, the following are required (Note: sometimes these binaries can be taken from one of the other FSL binary distributions if the operating system and machines are similar - e.g. certain varieties of linux on PC machines):

Note that if you are building these yourself, you will want to delete the word "freeware" from the build script in the top level FSL directory. Otherwise the build may overwrite your newly created binaries for these 3 packages.

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.