Installing the packages required by the Calice Reconstruction software:

The get_soft Script

Contents

1 Usage

The script get_soft.sh can be used to grep all packages which are needed to compile the calice software. The script contains a long list with the needed packages, their location, their versions and check sums (The check sum verification can be disabled by replacing the check sum by - ). The check sum verification is a bit fragile.

The script will create one directory LC (can be changed with the option --prefix [dir_name]. The source packages will be installed in LC/src, the compiled libraries and executables will be installed in LC/lib, LC/extern/lib, LC/autotools/lib, LC/bin, LC/extern/bin, LC/autotools/bin. The directory LC/src/log contains information about the installed or to-be-installed packages. The files with the extension .level give some information about the compilation/installation progress of a package. The file contains a simple number with the meaning:

  1. initial status
  2. successfully downloaded
  3. check sum is calculated and it matches the check sum specified in the get_soft.sh script. A md5 checksum is calculated from the total compound of all files listed in [name]-[version].files:
    checksum=$(cat $(cat [name]-[version].files) | md5sum )
    
  4. the package is configured (ready for compilation).
  5. the compilation was successful.
  6. the package is installed.
To return to an earlier level it is sufficient to change this number. For a clean restart, one should also delete the source. It should be save to interrupt the script at any time and to run it multiple times. Eventually, a partly downloaded package must be deleted manually.

2 Troubleshooting

2.1 Desy Linux

2.2 Red Hat 7.3

Red Hat ships with an ancient GNU C/C++ compiler version (2.96) which may cause some problems. I experienced the following problems: