That error typically means you're trying to run a binary file compiled for a different architecture (i.e. running a Linux binary on a Mac or vice versa).
You can easily check what 'mris_calc' is compiled for.
# On a Mac: $>cd $FREESURFER_HOME/bin $>file mris_calc mris_calc: Mach-O 64-bit executable x86_64
# On Linux: $>cd $FREESURFER_HOME/bin $>file mris_calc mris_calc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x9323298c405a28417aa0700d979713651437a416, not stripped
Can you confirm what architecture your 'mris_calc' is compiled for?
Best -=R
On 1/3/13 13:38 , Fred Lado wrote:
Thank Nick, when I try mris_calc, I get the following error:
/Users/Lado 1> mris_calc /usr/local/freesurfer/bin/mris_calc: Exec format error. Binary file not executable.
I applied chmod/chown/chgrp to the executable files to resemble the other freesurfer executables, the prior mris_calc file was renamed to mris_calc.old, shown below for comparison:
/Users/Lado 10> ls -l /usr/local/freesurfer/bin/mris_calc* -rwxr-xr-x 1 root wheel 5936512 Aug 13 19:53 /usr/local/freesurfer/bin/mris_calc -rwxr-xr-x 1 root wheel 5903448 May 26 2011 /usr/local/freesurfer/bin/mris_calc.old
Not sure what I'm missing, any suggestions? -Fred