Linux Command Line Installer

The Linux command line installer can be used to download and install binaries of the GLAST external libraries and packages.

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

Note: You can get the current release version of the installer from:

http://www-glast.stanford.edu/cgi-bin/viewcvs/grits-perl/infraBin/

Prerequisites

  • Perl
  • DBI Perl module
  • Pod::Usage Perl module
  • Getopt::Long Perl module

Note: If you already have Perl, you probably already have the "Pod" and "Getopt" modules. Verify that you also have the standard database interface (DBI) module.

Synopsis

installer.pl [GRITS:option]

Options:

--help,-? brief help message
--command,-c command to perform
--tag,-t tag to use
--package,-p package to use
--version,-v version of package to use
--extDir,-e directory where external libraries are to be installed
--instDir,-i directory where packages are to be installed
--extOnly,-x install only the external libraries (skip package installation)
--pkgOnly,-k install only the packages (skip external library installation)
--pretend,-r don't install anything
--temp,-m temporary directory to download files to (used for some compression methods)
--keepBins,-b don't remove bin scripts that point to non-existant binaries

Options

--help,-? Print a brief help message and exit.
--command,-c action Specifies the action to perform. Available actions are: listPackages, listTags, install.
--tag,-t Tag Narrow the results to anything that contains the specified tag.
--package,-p package Narrow the results to anything that contains the specified package name.
--extDir,-e dir Location where external libraries should be downloaded to. If not set it will try to use $GLAST_EXT.
--instDir,-i dir Location where packages should be downloaded to. If not set it will try to use $CMTPATH.
--extOnly,-x

Installs only the external libraries for selected version. Doesn't attempt to install any packages

--pkgOnly,-k Installs only the packages for selected version. Doesn't attempt to install any of the external libraries.
--pretend,-r Don't install any of the packages. Just print out what packages it would have installed.
--temp,-m Temporary directory used to download files to before uncompressing. This is not needed for .tar.gz files. If not set it will try to use $TEMP if set. This is only needed if $TEMP isn't defined and zip files are being downloaded.
--keepBins,-b By default the bin directory is cleaned after download to remove any scripts that point to binaries that don't exist. Use this flag to prevent it and keep all scripts in bin.

Examples

installer.pl List all the available tags.
installer.pl --command listPackages --tag rh9_gcc32 List all packages that are available for tag rh9_gcc32.
installer.pl --command listPackages --package GlastRelease --version LATEST1.919 List all packages that have versions LATEST1.919 and belong to GlastRelease.
installer.pl --command install --package GlastRelease --version LATEST1.919 --tag rh9_gcc32 --instDir /tmp Install external libraries for GlastRelease LATEST1.919 compiled for rh9_gcc32 into directory that's specified in $GLAST_EXT. Install GlastRelease packages for LATEST1.919 compiled for rh9_gcc32 into /tmp.
installer.pl --command install --package GlastRelease --version LATEST1.919 --tag rh9_gcc32 --instDir /tmp --pkgOnly Same as above, except no external libraries are installed.
installer.pl --command install --package GlastRelease --version LATEST1.919 --tag rh9_gcc32 --instDir /tmp --extOnly Only external libraries needed by GlastRelease-LATEST1.919 compiled for rh9_gcc32 are installed.
installer.pl --command install --package G05/22/2008 Installing the external libraries only for GlastRelease, where we utilize the GLAST_EXT environment variable to determine the location of the libraries.

Standalone Install of Glast ROOT Libraries

installer.pl --command install --package rootlibs-glastrelease --version v6r8 --tag rh9_gcc32opt --extDir $HOME/yourWorkDirectory This command string installs the rootlibs corresponding to GlastRelease version v6r8 in your work directory. To install rootlibs for EngineeringModel, replace rootlibs-glastrelease with rootlibs-engineeringmodel.

 

To Install CMT

installer.pl --command listPackages --tag rh9_gcc32 --package CMT Enter this command string first to check the versions available using the installer listPackages command, then enter:
installer.pl --command install --package CMT --version v1r16p20040701 --extDir C:\glast\tools --tag rh9_gcc32 --extOnly to install the desired version of CMT.

Note: After CMT is installed on your computer, add CMT to your PATH environment variable.

 

Last updated by: Chuck Patterson 01/30/2006