Dear FSL users,
At our computer cluster we have run into problems when calling fsl commands from the matlab command window (fsl does work correctly when calling commands from the linux command prompt). This issue appears to be specific to FSL 5.0.4 and the error does not occur when using FSL 4.1.6. We use the MODULES command to load the correct FSL version.
The problem is that running e.g. the following command “system(‘fslmaths’)” in matlab produces the error “fslmaths: /usr/local/matlabR2010A/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by fslmaths)”
We learned that this is the case because when “module load fsl/5.0.4” is added in our .bashrc script, ”/opt/fsl-5.0.4/bin” will become part of the PATH environment variable. As soon as this folder is part of the PATH variable, we will get the error message indicated above.
However, if the location ”/opt/fsl-5.0.4/bin” is removed from the PATH variable (e.g. manually, or by unloading the fsl 5.0.4. module and instead loading the fsl 4.1.6. module in the .bashrc file), no error is produced. Instead fslmaths now correctly shows the usage help (starting with the line Usage: fslmaths [-dt <datatype>] <first_input> [operations and inputs] <output> [-odt <datatype>]).
Any idea why we get the “GLIBCXX_3.4.11' not found” error as soon as ”/opt/fsl-5.0.4/bin” becomes part of the PATH environment variable? And how do get rid of the error?
Thanks for your help.
Best,
Henk van Steenbergen
|