= Binary installation: R2020a =
This stand-alone version is currently not distributed in the main package.<
>You can download it separately: [[http://neuroimage.usc.edu/bst/download.php|bst_bin_R2020a_YYMMDD.zip]]
== Requirements ==
==== Operating system ====
* '''Windows''': Winows 7, Windows 10 ([[https://fr.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/system-requirements-release-2020a-windows.pdf|details]])
* '''Linux''': Ubuntu 16+, RedHat 6+, Debian 9+, SUSE 12+ ([[https://fr.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/system-requirements-release-2020a-linux.pdf|details]])
* '''MacOS''': 10.13.6 (High Sierra), 10.14 (Mojave), 10.15 (Catalina) ([[https://fr.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/system-requirements-release-2020a-macintosh.pdf|details]])
==== Matlab Runtime ====
* '''Matlab Runtime version''': R2020a (9.8)
* Download for free from the [[https://www.mathworks.com/products/compiler/matlab-runtime.html|Mathworks website]]
== Installation ==
1. Download the latest bst_bin_R2020a_....zip archive
1. Unzip it somewhere on your computer, for example:
* __Windows__: My documents\brainstorm3
* __Linux__: /usr/local/brainstorm3 (or ~/brainstorm3 if you are not admin)
* __MacOS__: Applications/brainstorm3
1. Create a new folder "'''brainstorm_db'''" for the Brainstorm database, for example:
* __Windows__: My documents\brainstorm_db
* __Linux__: /home/username/brainstorm_db
* __MacOS__: Documents/brainstorm_db
== Start Brainstorm ==
1. Download the '''Runtime R2020a (9.8)''' for your operating system: [[https://fr.mathworks.com/products/compiler/matlab-runtime.html|Mathworks website]]
1. Install the Matlab Runtime:
* __Windows__: Double-click on the .exe and follow the instructions
* __MacOS__: Click on the zip file to unzip it, then click on "InstallForMacOSX"
* __Linux__: From a terminal, unzip .zip, then run ./install
1. Run the program in brainstorm3/bin/R2020a/
* __Windows__: Double-click on ''brainstorm3.bat''
* __MacOS__: Double-click on ''brainstorm3.command ''and wait for instructions
* __Linux__: From a terminal, run:<
>''cd brainstorm3/bin/R2020a/''<
>''./brainstorm3.command ''
1. Troubleshooting for MacOS:
* On recent versions of MacOS, you may get an error message "'''Application can't be opened because it is from an unidentified developer'''". This message would appear for all the programs that were not downloaded from the Apple app-store. To go around this verification: right-click on the application > Open, then click on the Open button.
* Other MacOS issues are discussed on the forum: [[https://neuroimage.usc.edu/forums/t/support-for-macos-bigsur/26890|Support for MacOS BigSur]].
1. Troubleshooting for MacOS or Linux:
* Some ''Linux Mint'' users have reported having interface issues, changing the graphical theme of their OS fixed this problem.
* From a terminal, make sure that the file "''brainstorm3.command''" is executable:<
>''chmod a+x brainstorm3.command''
* If nothing happens, run: <
>''./brainstorm3.command MATLABROOT''<
>MATLABROOT being the Matlab Runtime 9.8 folder (ex: /Applications/MATLAB/Runtime/v98)
* Try with another binary release: See at the bottom of the [[https://neuroimage.usc.edu/bst/download.php|Download]] page
1. Troubleshooting for Windows:
* Your current user may not have the necessary privileges. If are an administrator for your computer, you can do the following: right-click on ''brainstorm3.bat'' > Run as administrator.
* If you are not the administrator of your computer and Matlab or the Runtime are not installed in the standard paths, Brainstorm may have trouble finding them. To specify manually the path of the Runtime or Matlab folder, right-click on ''brainstorm3.bat'' > Edit. Fill the second line of the script (Example: @SET MATLABROOT="C:\Program Files\MATLAB\R2020a"), save the file, and try to execute it again.
1. If the startup process seems very long, try pressing ENTER after clicking on the terminal window.
1. On Linux or MacOS, you may be asked to select the folder where you installed the Runtime.
1. When asked for the Brainstorm database folder, pick the "brainstorm_db" you have just created.
1. Follow all the introduction tutorials in the section "Get started": [[Tutorials]]
== Updates ==
The automatic updates do not work with the stand-alone versions, follow this procedure:
* Delete the brainstorm3 folder (don't worry, it will not delete your database)
* Download the latest release of the Brainstorm for Matlab 2020a
* Follow the installation instructions (see above)