Installation: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
No edit summary  | 
				|||
| Line 26: | Line 26: | ||
/data/exptname/current <---- experiment data directory with ODB save files and MIDAS .mid/.mid.gz data files  | /data/exptname/current <---- experiment data directory with ODB save files and MIDAS .mid/.mid.gz data files  | ||
</pre>  | </pre>  | ||
=== Valid OS list ===  | === Valid OS list ===  | ||
| Line 56: | Line 41: | ||
=== external libraries/packages consideration ===  | === external libraries/packages consideration ===  | ||
Midas requires   | Midas requires:  | ||
* '''gcc''' compiler  | |||
* '''zlib''' library  | |||
=== Install MIDAS ===  | |||
* mkdir $HOME/packages  | |||
* Logout and login again, for .cshrc or bash changes to take effect  | |||
* cd $HOME/packages  | |||
* git clone https://bitbucket.org/tmidas/midas  | |||
* git clone https://bitbucket.org/tmidas/mxml  | |||
* (IF BITBUCKET IS DOWN) git clone -v --progress http://daq.triumf.ca/~daqweb/git/mxml.git  | |||
* (IF BITBUCKET IS DOWN) git clone -v --progress http://daq.triumf.ca/~daqweb/git/midas.git  | |||
* cd midas  | |||
* make  | |||
* (only if needed) make linux32 ### build the 32-bit MIDAS libraries on 64-bit machine  | |||
* ls -l linux/bin/odbedit ### check that odbedit has been created (do not run it yet)  | |||
=== Environment Variables consideration ===  | |||
* MIDASSYS Base directory of the MIDAS package, midas and mxml should be at the same level.  | |||
* MIDAS_EXPTAB Experiment definition file  | |||
* MIDAS_SERVER_HOST MIDAS host server name for remote midas connections.  | |||
(csh)  | (csh)  | ||
<pre>  | <pre>  | ||
| Line 68: | Line 73: | ||
setenv PATH .:$MIDASSYS/linux/bin:$PATH  | setenv PATH .:$MIDASSYS/linux/bin:$PATH  | ||
setenv PATH .:$HOME/online/bin:$ROOTSYS/bin:$PATH  | setenv PATH .:$HOME/online/bin:$ROOTSYS/bin:$PATH  | ||
# For default remote Midas server to myhost  | |||
setenv MIDAS_SERVER_HOST myhost00:7071  | |||
# For default remote Midas server to a given port  | |||
setenv MIDAS_SERVER_HOST myhost00:7071  | |||
# For no default on remote Midas server  | |||
unsetenv MIDAS_SERVER_HOST  | |||
# For default Midas experiment  | |||
setenv MIDAS_EXPT_NAME deap  | |||
</pre>  | </pre>  | ||
| Line 91: | Line 107: | ||
</pre>  | </pre>  | ||
=== [[Compilation & Build]] ===  | === [[Compilation & Build]] ===  | ||
The $MIDASSYS/Makefile contains the OS switch for proper compilation and build  | |||
=== Quick Start ===  | === Quick Start ===  | ||
example  | example  | ||
Revision as of 23:26, 25 November 2013
Pre-requisite
Required packages for Midas, should be only a few.
- zlib
 
Standard layout of MIDAS experiment
This layout includes other packages needed for data analysis but not required for acquisition purpose only (noted as **). The online directory is given only as a suggested structure.
/home/exptuser/
  packages/
    root <---- ROOT (64-bit or 32-bit) (**)
    mxml  <---- from MIDAS repository
    midas <---- MIDAS
      linux/{lib,bin}  <---- binaries matching the selected 64-bit/32-bit flavour of ROOT
      linux-m32/{lib,bin}   <---- limited function 32-bit binaries for 32-bit frontend machines, build by "make linux32"
      linux-m64/{lib,bin}   <---- limited function 64-bit binaries (only needed if ROOT and linux/bin are 32-bit)
      linux-crosscompile/{lib,bin}  <---- cross-compiled limited function binaries for PPC and ARM frontends (see Makefile)
  online/
    exptab <---- experiment definition
    {.ODB,.SYSTEM,.SYSMSG,etc}.SHM <---- MIDAS shared memory save files
    src <---- experiment frontend sources
    bin,scripts 
    elog <---- MIDAS elog (**)
    history <---- MIDAS history
    data -> /data/exptname/current <---- symlink to the data directory (**)
/data/exptname/current <---- experiment data directory with ODB save files and MIDAS .mid/.mid.gz data files
Valid OS list
Midas is compatible with:
- linux : Maintained
 - Darwin : Maintained
 - freeBSD : Maintained
 - Arm : On Raspberry Pi
 - VxWorks : Rarely used, still maintained
 - OSF1 : Not used for quite a while
 - ultrix : Not used for quite a while
 - solaris : No used for quite a while
 - Cygwin : Not used for quite a while
 - PPC405 : Not used for quite a while
 
external libraries/packages consideration
Midas requires:
- gcc compiler
 - zlib library
 
Install MIDAS
- mkdir $HOME/packages
 - Logout and login again, for .cshrc or bash changes to take effect
 
- cd $HOME/packages
 - git clone https://bitbucket.org/tmidas/midas
 - git clone https://bitbucket.org/tmidas/mxml
 - (IF BITBUCKET IS DOWN) git clone -v --progress http://daq.triumf.ca/~daqweb/git/mxml.git
 - (IF BITBUCKET IS DOWN) git clone -v --progress http://daq.triumf.ca/~daqweb/git/midas.git
 - cd midas
 - make
 - (only if needed) make linux32 ### build the 32-bit MIDAS libraries on 64-bit machine
 - ls -l linux/bin/odbedit ### check that odbedit has been created (do not run it yet)
 
Environment Variables consideration
- MIDASSYS Base directory of the MIDAS package, midas and mxml should be at the same level.
 - MIDAS_EXPTAB Experiment definition file
 - MIDAS_SERVER_HOST MIDAS host server name for remote midas connections.
 
(csh)
setenv LANG C setenv GIT_EDITOR "emacs -nw" setenv MIDASSYS $HOME/packages/midas setenv ROOTSYS $HOME/packages/root setenv MIDAS_EXPTAB $HOME/online/exptab setenv PATH .:$MIDASSYS/linux/bin:$PATH setenv PATH .:$HOME/online/bin:$ROOTSYS/bin:$PATH # For default remote Midas server to myhost setenv MIDAS_SERVER_HOST myhost00:7071 # For default remote Midas server to a given port setenv MIDAS_SERVER_HOST myhost00:7071 # For no default on remote Midas server unsetenv MIDAS_SERVER_HOST # For default Midas experiment setenv MIDAS_EXPT_NAME deap
(bash)
export LANG=C export MIDASSYS=$HOME/packages/midas export PATH=$PATH:$MIDASSYS/linux/bin export MIDAS_EXPTAB=/home/deap/exptab # For default remote Midas server to myhost export MIDAS_SERVER_HOST=myhost00:7071 # For default remote Midas server to a given port export MIDAS_SERVER_HOST=myhost00:7071 # For no default on remote Midas server export MIDAS_SERVER_HOST= # For default Midas experiment export MIDAS_EXPT_NAME=deap
Compilation & Build
The $MIDASSYS/Makefile contains the OS switch for proper compilation and build
Quick Start
example