Cheat Sheet:
Developer Desktop Installation - Linux

This Glast software installation "Cheat Sheet" is intended as a shortcut for developers using a Linux machine who may simply be installing software they are already familiar with on a new machine.

Notice: The GLAST code has not been released to the public and is for use by members of the LAT Collaboration only!

Prerequisites

  • GLAST-supported Compiler Install the GLAST-supported compiler on your machine. (GLAST does not provide this software.)
  • Java (required for GUI installer; you can download Java from java.com); javaws must be in your path if using the GLAST Software Installer GUI.

Note: Linux users who prefer using a command line installer instead of a GUI, do not need to install Java. (See Linux Command Line Installer.)

  • CVS Linux: The CVS utility should already be installed on your system; to verify, enter a command such as cvs -v from the command line.

If CVS is not installed on your system, contact your system administrator to have it installed.

Create Linux Environment Variables (for access to the GLAST cvs respository):

setenv CVS_RSH ssh

setenv CVSROOT :ext:centaurusa.slac.stanford.edu:/nfs/slac/g/glast/ground/cvs

Troubleshooting Tip : If your userid on your local machine is different from your userid for SLAC, you must specify your SLAC userid. For example, if your SLAC userid is mySLACid then, in the second setenv command above:

:ext:centaurusa.slac.stanford.edu

should be replaced with:

:ext:yourAccountName@centaurusa.slac.stanford.edu:/nfs/slac/g/glast/ground/cvs

To verify that you can access the GLAST CVS server, issue a query.
For example,
the start of output for a cvs rlog command on a module
in the GLAST repository:

$ cvs rlog -t GlastRelease/doc
  cvs rlog: Logging GlastRelease/doc
  RCS File: /nfs/slac/g/glast/ground/cvs/GlastRelease/doc/release.notes, v head: 1.7

Install Glast Software

Installers:

Note: If you experience problems, refer to step 1 of: Glast Software Installer.

Procedure
  1. Create directories for Glast packages and external libraries.
  1. Create an environment variable for GLAST_EXT.
  1. Install CMT.

    Note: If you want to use SLAC Public's CMT installation instead of downloading CMT, you can do so by setting up your .cshrc file. (See Modify Your SLAC Public Environment.) If you are working offsite, you should download the CMT to your local machine.

  2. Add the directory containing cmt.exe to your environment variables.
    1. The following example assumes the current compiler is Red Hat 9
      with gcc 3.2 and is installed in the default location; modify as appropriate.

    setenv CMTCONFIG rh9_gcc32

    1. Point to the CMT Location of the CMT Installation on Your Machine:

    setenv CMTBASE /software/CMT

    1. Add the Version of CMT (typically a part of the directory path to your
      CMT installation)

    setenv CMTVERSION v1r16p20040701/Linux
    source ${CMTBASE}/${CMTVERSION}/mgr/setup

    1. In the mgr directory, modify the setup.sh and setup.csh files (e.g., glast/tools/CMT/v1r16p20040701/mgr/setup.sh) so that the environment variable CMTROOT, initialized in these files, gets set to the right value for your
      installation:
  1. Assuming the installation directory is /glast/tools, change the line near the top of setup.sh from:

    CMTROOT=/1a1/CMT/v1r16p20040701; export CMTROOT

to:

CMTROOT=/glast/tools/CMT/v1r16p20040701; export CMTROOT

  1. In setup.csh change:

    setenv CMTROOT /1a1/CMT/v1r16p20040701

to:

setenv CMTROOT=/glast/tools/CMT/v1r16p20040701

  1. Test your CMT Installation:

At the command prompt, enter: cmt

Verify that a list of possible cmt command options is displayed.

  1. Install Glast software and external libraries.

Note: If installing GlastRelease or EngineeringModel, create an environment variable for ROOT; see: Set ROOT Environment Variables: Linux

Also see: Calibration Files: Access Overview

  1. Install MRvcmt; see Install MRvcmt on Standalone Desktop Machines.

 

Last updated by: Chuck Patterson 05/22/2008