Dear Mark,
> Are there any guidelines for having SPM5 and SPM2 installed concurrently? I'm
> trying to encourage migration to SPM5, but there is an on-going need for SPM2
> to satisfy the protocols of existing studies. How should they be installed to
> allow users to specify the desired version from within matlab?
Volkmar suggested nice scripts for concurrent running SPM2 and SPM5
http://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind06&L=spm&O=D&F=&S=&P=311390
In case you can't see the link, I write the guideline below.
1. make a directory where you want to save scripts. (e.g. ~/spm_paths/)
2. add the directory to the path in Matlab. (File -> Set Path -> Add
path)
3. write scripts to run spm2 and spm5
suppose your spm2 and spm5 directories are "/usr/local/spm2" and
"/usr/local/spm5"
%%%%%%%%%%%%%%% spm2.m
% try to close spm, remove spm5 path and clear variables
try
spm quit
clear all
rmpath /usr/local/spm5
end
addpath /usr/local/spm2
spm
%%%%%%%%%%%%%%% spm5.m
% try to close spm, remove spm2 path and clear variables
try
spm quit
clear all
rmpath /usr/local/spm2
end
addpath /usr/local/spm5
spm
(Of course you can add any paths you like between "addpath c:\spm2/5"
and "spm")
4. save these scripts in the directory ~/spm_paths/
5. In a matlab window, type "spm2"
6. In another matlab window, type "spm5"
Now you can run different versions of SPM concurrently.
> In addition, are there any suggestions for compiling SPM2 under Linux x86_64?
> Using the "Linux.A64" target seems to work for building the object files, but
> the compiler cannot link against libmx:
>
> /usr/bin/ld: skipping incompatible /usr/local/matlab-6.5/bin/glnx86/libmx.so when searching for -lmx
>
> Our environment is:
>
> Linux 2.6.9, x86_64
> Matlab Version 6.5.1.199709 Release 13 (Service Pack 1)
> gcc version 3.4.6
My understanding is that Matlab6.5 is not 64bit native. You need
Matlab7 and higher for 64bit native environments. In that situation,
compiling for Linux.A64 doesn't work properly. I think upgrading to
Matlab 7 or higher ( and compiling again) will resolve the problem.
Hope this helps,
Kiyotaka
--
Kiyotaka Nemoto M.D.
Department of Psychiatry, Mitsukaido Kosei Hopsital
3721-2 Uchimoriya Joso Ibaraki 303-0043, Japan
E-mail: [log in to unmask]
|