Hello, Following the instructions on SPM wikipedia, posted earlier in this thread, i've attempted to recompile spm2 on OSX. Unfortunately i get the following error: ____________________________________________________________ # make MAC make all SUF=mexmac RANLIB="ranlib spm_vol_utils.mexmac.a" _____________________________________________________________ Unix compile for MacOS X _____________________________________________________________ mex -O -c spm_mapping.c make[1]: mex: Command not found make[1]: *** [spm_mapping.mexmac.o] Error 127 make: *** [MAC] Error 2 ____________________________________________________________ Any suggestions as to how to remedy this? Thanks in advance, Julian