Hi,
On Sun, Aug 19, 2007 at 11:18:22PM +0100, Jack Grinband wrote:
> Hi All,
> I installed the latest on Ubuntu. I get the error below when running FEAT.
> Also, I can't seem to find FEEDS... it's not in bin. But when I try to
> re-install FEEDS it tells me "fsl is already the newest version". Any ideas?
>
> =============================
>
> /bin/cp /tmp/feat_zJJwFw.fsf design.fsf
>
> /usr/share/fsl/bin/feat_model design
>
> /usr/share/fsl/bin/fsl_sub -T 51 -l logs -N feat2_pre
> /usr/share/fsl/bin/feat /data/spd3gh/xH/s18/preproc1.feat/design.fsf -D
> /data/spd3gh/xH/s18/preproc1.feat -I 1 -prestats
> [: 300: ==: unexpected operator
> [: 387: ==: unexpected operator
> [: 387: -le: argument expected
> 11707
I tracked the error down to the 'fsl_sub' script. It looks like it is
not POSIX-compliant, but it defines /bin/sh as interpreter.
On Ubuntu systems sh is symlinked to dash instead of bash on Debian
systems. As dash is more strict about POSIX it fails and causes feat to
abort.
The quick workaround is to change the fsl_sub interpreter to bash (first
line of the script). However, it is probably best to make it
POSIX-compliant.
Ah, BTW: You can find fsl_sub in /usr/lib/fsl.
Cheers,
Michael
--
GPG key: 1024D/3144BE0F Michael Hanke
http://apsy.gse.uni-magdeburg.de/hanke
ICQ: 48230050
|