Installation problem in Mac

Hi,

I try to install brainstorm in Mac, have installed brainstorm latest version and
Matlab runtime following the instruction carefully step by step. When I run
brainstorm3.command the first time, I was prompted to select the folder
where you installed the MCR, I pointed to folder /Applications/MATLAB/MATLAB_Compiler_Runtime/v81,
then the program terminated. I try to run it again, I got error message
as following:

java.lang.UnsatisfiedLinkError: Failed to find the library libmwmclmcrrt.8.0.dylib, required by MATLAB Builder JA, on java.library.path.
This library is typically installed along with MATLAB or the MCR, its absence may indicate an issue with that installation or the current path configuration.
The MCR version that this component is trying to use is: 8.0.

at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.get(MCRConfiguration.java:167)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.<clinit>(MCRConfiguration.java:173)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getProxyLibraryDir(MCRConfiguration.java:178)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$MCRRoot.get(MCRConfiguration.java:77)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$MCRRoot.<clinit>(MCRConfiguration.java:87)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getMCRRoot(MCRConfiguration.java:92)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ModuleDir.<clinit>(MCRConfiguration.java:66)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getModuleDir(MCRConfiguration.java:71)
at com.mathworks.toolbox.javabuilder.internal.MWMCR.<clinit>(MWMCR.java:1466)
at bst_javabuilder.Bst_javabuilderMCRFactory.newInstance(Bst_javabuilderMCRFactory.java:54)
at bst_javabuilder.Bst_javabuilderMCRFactory.newInstance(Bst_javabuilderMCRFactory.java:65)
at bst_javabuilder.Run.main(Run.java:119)

logout

[Process completed]

What can I do to fix it? Wonder if I set MATLABROOT wrong, but I don’t know where it is saved
and which file I should edit to fix…

Thanks!
Liying

Hello:

You will need to download the previous version of the MCR from the Mathworks website

The MCR version that this component is trying to use is: 8.0.

Give it a try and let us know if that solved your issue.
Cheers,

Hi Liying,
You need to download and install the MCR version 2012b.
Francois

Thanks! I will try that.

Thanks! I removed MCR version 2013a and installed 2012b, but MATLABROOT still points to the old folder, how do
I reset it? The error message now is:

client-75-102-111-174:~ liying$ /Applications/brainstorm3/bin/R2012b/brainstorm3.command ; exit;

Error: /Applications/MATLAB/MATLAB_Compiler_Runtime/v81
Not a valid MATLAB root path.

USAGE: brainstorm3.command <MATLABROOT>

Have a look into brainstorm3.command. The header says

If MATLABROOT argument is specified, the Matlab root path is saved

in the file ~/.brainstorm/MATLABROOT80.txt.

As suggested, you can open a terminal in this folder, and call it this way:
brainstorm3.command <MATLABROOT_v80>
It would overwrite the previously set value

Or you can delete the file MATLABROOT.txt in your user folder: $HOME/.brainstorm/MATLABROOT.txt
It would ask you again for the Matlab Runtime folder.

Thanks! I simply removed the file and now can run brainstorm program successfully, I have warning message below:

Warning: application is running on a locale different from the original platform locale.
Warning: application is running on a platform different from the platform where the application was compiled.
2013-05-03 11:08:46.436 java[971:19c1b] This process is attempting to exclude an item from Time Machine by path without administrator privileges. This is not supported.

Will it cause any problem?

Liying

If it works this way, don’t worry about those messages.
You can ignore all the warnings before the line “BST> Starting Brainstorm:”

Thanks all for your help.

Liying