Installation: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
=== Pre-requisite ===
=== 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.
<pre>
/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
</pre>
=== Install MIDAS ===
* mkdir $HOME/packages
* Logout and login again, for .cshrc changes to take effect
* cd $HOME/packages
* (OBSOLETE) svn co svn+ssh://svn@savannah.psi.ch/repos/meg/midas/trunk midas, password "svn". (password has to be entered twice)
* (OBSOLETE) svn co svn+ssh://svn@savannah.psi.ch/repos/meg/mxml/trunk mxml
* 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
* ls -l linux/bin/odbedit ### check that odbedit has been created (do not run it yet)


=== Valid OS list ===
=== Valid OS list ===
Line 8: Line 51:
=== Environment consideration ===
=== Environment consideration ===
(shells)
(shells)
<pre>
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
</pre>


=== Midas environment ===
=== Midas environment ===
listing
* 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.


=== [[Compilation & Build]] ===
=== [[Compilation & Build]] ===

Revision as of 22:50, 21 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

Install MIDAS

  • mkdir $HOME/packages
  • Logout and login again, for .cshrc changes to take effect

Valid OS list

external libraries/packages consideration

(root, gzip, xml)

Environment consideration

(shells)

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

Midas environment

  • 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.

Compilation & Build

Quick Start

example