User Tools

Site Tools


neuroelf_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
neuroelf_installation [2011/03/31 00:47] – added description of folder structure jochenneuroelf_installation [2011/08/15 14:09] (current) – Updated text for Windows MEX compiler selection jochen
Line 1: Line 1:
 ====== NeuroElf installation ====== ====== NeuroElf installation ======
 +
 +===== Requirements =====
 +As said on the [[NeuroElf introduction|introduction]] page, NeuroElf requires one of the following environments:
 +
 +  * Microsoft Windows (tested under Windows XP and Windows 7), using Matlab Version v7.5 (R2007b) and onwards
 +  * Linux (tested under S.u.S.E. Linux 11.2, 64-bit edition as well as Ubuntu 10, 32-bit edition), using Matlab Version v7.5 (R2007b) and onwards
 +  * Mac OSX (tested under Mac OSX 10.5 and 10.6 on an iMac with 64-bit support as well as a OSX 10.4 PPC PowerMac), using Matlab Version v7.5 (R2007b) and onwards
 +  * alternatively, you can try to use [[http://www.gnu.org/software/octave/|GNU Octave]], starting with version v3.4.0 (currently available for Intel-based Macs and as source code); **please note that no GUI elements currently work under GNU Octave!** (a restriction hopefully going away for future Octave versions...); **also note that when using the Installer ZIP file, you must use the ''-f'' option to override the check for the Matlab release/version!**
  
 ===== Process ===== ===== Process =====
 +{{ youtube>DktIMfu9UM8?320x204| NeuroElf v0.9c installation (video demonstration)}}
 To install NeuroElf, please download the current version from the [[http://neuroelf.net/|main page]] (either the installer or flat folder/snapshot). To install NeuroElf, please download the current version from the [[http://neuroelf.net/|main page]] (either the installer or flat folder/snapshot).
 +
 +For a video demonstration, please watch the video on the right side (go to the [[NeuroElf installation video]] page for a full-size view).
  
 ==== Using the installer ==== ==== Using the installer ====
-In case you downloaded the installer, unzip the archive to a temporary location, which contains to files:+In case you downloaded the installer, unzip the archive to a temporary location, which contains three files:
   * NeuroElf_vXY.m   * NeuroElf_vXY.m
   * NeuroElf_vXY.mat   * NeuroElf_vXY.mat
 +  * ne_eo.m //(this is a compatibility file added to allow Octave to use NeuroElf's error handling scheme)//
  
-The ''.m'' file contains the code that unpacks the files from the ''.mat'' file within Matlab, runs some preliminary checks and, eventually, calls ''neuroelf_setup'', which performs some of the setup tasks (e.g. compiling the MEX files if necessary and creating the file format cache). To install the toolbox, change the current directory in Matlab to the temporary folder where you unzipped the archive and then call the installing ''.m'' file with the ''-i'' input argument:+The first ''.m'' file contains the code that unpacks the files from the ''.mat'' file within Matlab/Octave, runs some preliminary checks and, eventually, calls ''neuroelf_setup'', which performs some of the setup tasks (e.g. compiling the MEX files if necessary and creating the file format cache). To install the toolbox, change the current directory in Matlab to the temporary folder where you unzipped the archive and then call the installing ''.m'' file with the ''-i'' input argument:
  
 <code neuroelf_installation.m>% change into folder containing installer <code neuroelf_installation.m>% change into folder containing installer
 cd ~/Desktop cd ~/Desktop
  
-% call installer (in this case for version v0.9b+% call installer (in this case for version v0.9c
-NeuroElf_v09b -i</code>+NeuroElf_v09c -i 
 + 
 +% when using Octave, you must use 
 +% NeuroElf_v09c -f 
 +% to override the Matlab release check!</code>
  
 You will then be asked where to install the toolbox. **Please make sure to choose a path/folder that is writable to the user(s) regularly using the toolbox!!** You will then be asked where to install the toolbox. **Please make sure to choose a path/folder that is writable to the user(s) regularly using the toolbox!!**
  
-The folder into which the toolbox is installed will be added to Matlab path **temporarily**; in other words, if you wish to keep the toolbox on the path, please open the Path settings under File -> Set Path... or, alternatively, issue the ''savepath'' command on the Matlab prompt.+The folder into which the toolbox is installed will be added to Matlab/Octave path **temporarily**; in other words, if you wish to keep the toolbox on the path, please open the Path settings under File -> Set Path... or, alternatively, issue the ''savepath'' command on the Matlab/Octave prompt.
  
 In case the MEX files were not compiled on your platform and also not part of the installation package, please first read the [[NeuroElf MEX files|page on MEX file compilation]] and, if that doesn't help, get in touch with me (see the [[NeuroElf - error report|error reporting page]] for instructions). In case the MEX files were not compiled on your platform and also not part of the installation package, please first read the [[NeuroElf MEX files|page on MEX file compilation]] and, if that doesn't help, get in touch with me (see the [[NeuroElf - error report|error reporting page]] for instructions).
  
 ==== Using the flat folder/snapshot ==== ==== Using the flat folder/snapshot ====
-In case you downloaded the flat folder or snapshot archive, simply unzip this archive to its final destination. The archive contains one folder which is named according to the version of the toolbox, e.g. ''NeuroElf_v09b''.+In case you downloaded the flat folder or snapshot archive, simply unzip this archive to its final destination. The archive contains one folder which is named according to the version of the toolbox, e.g. ''NeuroElf_v09c''.
  
 To finalize the installation, change into the installation folder in Matlab and issue the ''neuroelf_setup'' function manually: To finalize the installation, change into the installation folder in Matlab and issue the ''neuroelf_setup'' function manually:
Line 43: Line 59:
   * whereas many toolboxes require to add several folders to the path, NeuroElf only needs it main folder to be added   * whereas many toolboxes require to add several folders to the path, NeuroElf only needs it main folder to be added
   * the [[xff]] format files (text files that contain the instructions on how exactly to read/write different file formats) are parsed only once and the result is stored under ''_files/cache/cache.mat''; it is thus important that this folder is writable to the toolbox (particularly when the format files are updated!)   * the [[xff]] format files (text files that contain the instructions on how exactly to read/write different file formats) are parsed only once and the result is stored under ''_files/cache/cache.mat''; it is thus important that this folder is writable to the toolbox (particularly when the format files are updated!)
 +  * additional files can be created by using [[neuroelf_makefiles]] (see its page for settings); but as this might take quite a while to complete with full settings, there is a prepared file for download containing all files: [[http://neuroelf.net/NeuroElf_v09c_colin_aux.zip|NeuroElf_v09c_colin_aux.zip]] --after downloading the files from this archive should be unzipped into the ''_files/colin'' subfolder of the installation
 +  * support for [[http://www.gnu.org/software/octave/|GNU Octave]] is very preliminary (reading, altering, and writing files should work, but no GUI functionality is available!)
 +
 +===== Errors / warnings during installation =====
 +Given that the setup function (''neuroelf_setup'') will try to compile some C-based code into MEX files (see [[NeuroElf MEX files]] for infos), it is possible that you will see some warning or error messages in case your system doesn't have a functional compiler installed or setup in Matlab. These error messages should only occur the first time you set up a particular NeuroElf version!
 +
 +In that case, the setup function will try to copy the MEX files that come with the package into the NeuroElf installation folder, after which all subsequent routines should work without further problems.
 +
 +**Note: On Windows machines that don't have a compiler installed, the ''mex'' function still asks to select a compiler and upon selecting "none" (0), the function exits without error. One user reported that it might be necessary to 1.) keep selecting ''0'' for each of the MEX files to be compiled, which is about 30 times, during the installation of NeuroElf (''NeuroElf_v0XY -i'' internally runs ''neuroelf_setup'') and then 2.) manually re-run the ''neuroelf_setup'' function again so that the MEX files are properly copied into the installation folder.** 
 +
 +If you receive further warning/error messages about missing MEX files, the platform you're using is not supported (as of yet) by pre-built MEX files, and I would like to ask you to get in touch with me (at info _at_ neuroelf _dot_ net), so that I can add support for this platform by adding compiled files accordingly (for which I might require your assistance and some patience...).
  
 ===== Installation folder structure ===== ===== Installation folder structure =====
Line 77: Line 104:
         * ''maci'' - compiled MEX files for the MACI (Intel-Mac) platform         * ''maci'' - compiled MEX files for the MACI (Intel-Mac) platform
         * ''maci64'' - compiled MEX files for the MACI64 (64-bit Intel-Mac) platform         * ''maci64'' - compiled MEX files for the MACI64 (64-bit Intel-Mac) platform
 +        * ''octave'' - compiled MEX files for Octave (subfolders for platforms, not listed here)
         * ''w32'' - compiled MEX files for the W32 (32-bit MS Windows) platform         * ''w32'' - compiled MEX files for the W32 (32-bit MS Windows) platform
         * ''w64'' - compiled MEX files for the W64 (64-bit MS Windows) platform         * ''w64'' - compiled MEX files for the W64 (64-bit MS Windows) platform
neuroelf_installation.1301532463.txt.gz · Last modified: 2011/03/31 00:47 by jochen