Difference: MusunAtNcsa (2 vs. 3)

Revision 32010-07-26 - NanditaRaha

Line: 1 to 1
 
META TOPICPARENT name="NanditaRaha"
Changed:
<
<

Installation of Mu at NCSA

>
>

Installating Mu at NCSA

  Refer to this link for a general installation of the Analysis Software.
Line: 10 to 10
 

Edit the ~/.soft file and set all environment variables here.

Changed:
<
<

Softwares required to install:

>
>

Softwares required to be installed:

  The following softwares must either be installed (or you can set the environment variables to a path that points to the softwares already installed - this is more convinient than installing a software):
Line: 82 to 82
  Once you have that you can browse the CVS repository to see what we have in CVS. Use your NPL username and password to login.
Changed:
<
<
Use the command:

>cd -d

The default paths for installation put the directories daq/ mu/ and installation/ directly in your home directory. If you wish to create a separate directory to contain these, such as musun/daq/, musun/mu/, musun/installation/, you will need to pay attention to the environment variables and a few lines in the makefiles.
For example, you should use the env variable "export MU=$HOME/musun/mu/work", and the makefile for mu (mu/work/Makefile) has a few library paths like
"UNCOMPRESS_LIB = ../compress -L$(HOME)/installation/md5-lib/ -lmd5"
that you must change to
"UNCOMPRESS_LIB = ../compress -L$(HOME)/musun/installation/md5-lib/ -lmd5"

  • Java is already installed on NPL machines. But you need to install JavaCC. Create installation folder on your home directory and copy javacc-4.0 (( from NPL:home/kizilgul/installation/ )) into your installation directory. In this directory

> tar -zxvf javacc-4.0.tar.gz

  • Add/Change these in your .bashrc file.
>
>
In the ~/.soft file just append the following lines:
 
Changed:
<
<
export MTA=$HOME/mu/src/uiuc/macros/EventTree
export MU=$HOME/mu/work
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun
export JJTREE_HOME=$HOME/installation/javacc-4.0/bin
export PATH=$JJTREE_HOME:$PATH
>
>
CVS_RSH=ssh

CVSROOT=your_login_name@login.npl.uiuc.edu:/site/npl/musun/cvsroot
 
Changed:
<
<
  • If you dont have CVS (( cvs checkout CVSROOT )). Then add these in your .bashrc file.
>
>
Before using the cvs commands you have to execute
 
Changed:
<
<
CVSROOT=(your npl login name)@login.npl.uiuc.edu:/site/npl/musun/cvsroot/
export CVSROOT
export CVS_RSH=ssh;
>
>
>resoft
 
Changed:
<
<
  • Get midas software from CVS and add these lines to your .bashrc file
>
>
Now use the command:
  > cvs co daq
Deleted:
<
<
 
Changed:
<
<
export MIDAS_ROOT=$HOME/daq/midas
export MIDAS_HOME=$MIDAS_ROOT
export MIDASSYS=$MIDAS_ROOT
export MIDAS_EXPTAB=$HOME/odb/exptab
export MIDAS_EXPT_NAME=musun
>
>
Use your NPL username and password to checkout daq.
 
Changed:
<
<
  • run make in daq/midas directory
>
>
For run2 analysis checkout mu_run2 from CVS by the following cmd:
 
Changed:
<
<
> make
>
>
> cvs co mu_run2
 
Changed:
<
<
  • Get musun software from CVS,

> cvs co mu

>
>
Run make in daq/midas directory
 
Changed:
<
<
  • copy master.odb from my directory (/home/kizilgul/mu_run2/odb/run2Master.odb) --has some little changes for musun-- go to mu/odb and enter odbedit than load run2Master.odb
> odbedit
odb > load run2Master.odb

  • Now go to mu/mql directory and

> mv JavaCharStream .java JavaCharStream .obsolete

>
>
> make
 
Changed:
<
<
> make clean
>
>
Set your MIDAS paths to point to a working versionin .soft file
  • MIDAS_ROOT has to link to the directory where you just compiled MIDAS (e.g. MIDAS_ROOT=/$HOME/daq/midas/)
  • MIDAS_HOME = $MIDAS_ROOT
  • LD_LIBRARY_PATH += $MIDAS_ROOT/linux/lib
  • PATH += $MIDAS_ROOT/linux/bin
  • MIDAS_DIR=$HOME/mu_run2/work

To check if midas is installed correctly or not you can run

>odbedit

If everything is fine it will run without any errors.

Compiling the tree generating analysis: ./mu

 
Changed:
<
<
> make
>
>
Now compile the mql part in the mu repository by:
> cd mu/mql
> mv JavaCharStream.java JavaCharStream.obsolete
> make clean
> make
 
  • Run make in mu/compress/. A common error is related to 64-bit vs 32-bit systems. If you are running 64-bit linux, change the lines simlar to the following in the mu/compress/Makefile. (may need to add 64 in front of linux folder name)
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback