Difference between revisions of "Scripts for Installing GlueX Software"
Line 1: | Line 1: | ||
− | I have developed a set of scripts for installing GlueX software on several flavors of Linux. The only assumption made is that the basic packages that come in a minimal install are present.<ref>The definition of minimal depend on the installation. In all cases, the distribution was tested by first installing from a DVD or CD iso image. Typically, the "live CD" version was chosen since that installs the smallest number of packages by default.</ref> | + | I have developed a set of scripts for installing GlueX software on several flavors of Linux. No interaction from the user should be required to get a successful build. The only assumption made is that the basic packages that come in a minimal install are present.<ref>The definition of minimal depend on the installation. In all cases, the distribution was tested by first installing from a DVD or CD iso image. Typically, the "live CD" version was chosen since that installs the smallest number of packages by default.</ref> |
+ | |||
+ | Root access is required for installing prerequisite packages on the system. | ||
+ | |||
+ | This is beta software as of June 22, 2013. | ||
+ | |||
+ | =Packages Built= | ||
+ | |||
+ | The following software packages are build from source. | ||
+ | |||
+ | * xerces-c | ||
+ | * CERNLIB | ||
+ | * ROOT | ||
+ | * CLHEP | ||
+ | * Geant4 | ||
+ | * GSL (Gnome Scientific Library) | ||
+ | * CCDB | ||
+ | * JANA | ||
+ | * HDDS | ||
+ | * sim-recon | ||
=Tested Distributions= | =Tested Distributions= |
Revision as of 19:48, 22 June 2013
I have developed a set of scripts for installing GlueX software on several flavors of Linux. No interaction from the user should be required to get a successful build. The only assumption made is that the basic packages that come in a minimal install are present.[1]
Root access is required for installing prerequisite packages on the system.
This is beta software as of June 22, 2013.
Contents
Packages Built
The following software packages are build from source.
- xerces-c
- CERNLIB
- ROOT
- CLHEP
- Geant4
- GSL (Gnome Scientific Library)
- CCDB
- JANA
- HDDS
- sim-recon
Tested Distributions
The scripts have been tested on the following distributions:
Distribution | Package Type | System |
---|---|---|
CentOS 6 | RedHat | x86_64 |
Scientific Linux 6 | RedHat | x86_64 |
Ubuntu 12.04 | Debian | x86_64 |
Fedora 18 | RedHat | x86_64 |
LinuxMint 15 | Debian | x86_64 |
openSUSE 12.3 | RedHat | x86_64 |
Installation Steps
The installation proceeds in three steps, one script per step.
1. prerequisites: gluex_prereq_<distribution>.sh
The prerequisites script installs packages from the distribution repository necessary for the GlueX build. As such, it must be executed by root. In addition it makes some symbolic links in system directories that are necessary for the cernlib build. These scripts are specific to particular distributions.
2. subversion test: svn_touch.sh
Simply does an "ls" of the Hall D and 12 GeV subversion repositories at JLab, both as a test and to dispense with interactive prompts asking about certificates from the servers. Respond with "p", to permanently accept the certificates. These prompts would otherwise hang the build. If you are not prompted, you already recognize the certificates. The script is distribution independent.
3. install: gluex_install.sh
Creates a directory, "gluex", in the current working directory for the build, sets up an environment (bash shell is assumed), downloads all source files, and builds all libraries and executables needed to run GlueX software. The install assumes a directory structure that accomodates multiple versions of the GlueX packages if they are needed later. The script is distribution independent.
Getting the Scripts
A tar file with these scripts is available at https://halldweb1.jlab.org/dist/gluex_install.tar
Using the Build
After the build is complete, there is a file gluex/setup.sh that can be used to set-up the complete GlueX environment (under bash).
Future Work
- C-shell set-up
- reduced set of built packages (glue
- version configuration via XML file
- addition of other distributions
- explore integration with gridmake
- add build of amptools
- ↑ The definition of minimal depend on the installation. In all cases, the distribution was tested by first installing from a DVD or CD iso image. Typically, the "live CD" version was chosen since that installs the smallest number of packages by default.