Epics@GSI Webhome

EPICS installations at GSI - Base installation


1 Preface

1.1 Scripts: #!/bin/bash


Up-to-now
All tools rely on bash shell scripting.


1.2 some global environment variables during installation

During installation those environment variables are used to define a common setup environment

ALL_EPICS_TOP_DIR
top directory which holds different EPICS versions and whose bin directory is included in $PATH (e.g. ~epics, /usr/local/pub)
EPICS_DOWNLOAD_DIR
directory where you store your downloads
EPICS_HOME
directory where your current installation should be (installed)
EPICS_VERSION
version to be installed

therefore do the export here:
# Global installation settings

echo -n '<All Epics Top Directory>: ' && read ALL_EPICS_TOP_DIR && export ALL_EPICS_TOP_DIR
echo -n '<EPICS Home Directory>: ' && read EPICS_HOME && export EPICS_HOME
echo -n '<Download Directory>: ' && read EPICS_DOWNLOAD_DIR && export EPICS_DOWNLOAD_DIR
echo -n '<EPICS Version>: ' && read EPICS_VERSION && export EPICS_VERSION



2 General Preparations

Following the corresponding https://epics-controls.org/base/R7-0/4-docs/README.html (local copy) section Building EPICS base (Unix and Win32) provided in the download area, which is titled Installation Instruction, do the following:


2.1 Checks

  • Check the supported compilers
  • Check the software requirements
Software requirements of version 7.0.4

GNU make
You must use GNU make, gnumake, for any EPICS builds. Set your path so that a gnumake version 3.81 or later is available.
gcc
You must have gcc version 3.4.2 or later.
Perl
You must have perl version 5.8 or later installed. The configure files do not specify the perl full pathname. You need the perl executable in your search path.
GNU readline or Tecla library
(optional, but recommened)

2.2 Create Directory and Download Sources


2.2.1 Preface - GSI: Facing different versions flavors of OS, architectures and compilers


2.2.2 Download EPICS base

Version 7.0.4 (as of 2020 May 28 ).
Download from https://epics-controls.org/resources-and-support/base


2.2.3 Download patches EPICS base

Starting from the page https://epics-controls.org/base/R7-0/4-docs/KnownProblems.html for each version may list several patches to be applied.

2.2.4 Compact - Directories/epics & Download of Base Sources



2.3 Setting environment variables

There are at least two major possiblities:


2.3.1 epics set of scripts


2.3.2 by hand

At least EPICS_HOST_ARCH has to be defined, which can be done via:

2.3.3 Compact - environment


2.4 Compiler settings

If you are using different compilers, CC and CCC have to be modified in the corresponding ${EPICS_BASE}/configure/os directories.



3Additional Configuration settings


4 Compile

Setting up the environment
$> cd $EPICS_HOME && . epics 7.0.4ENDSECTION{"epics compile - 1"}%
Following the instruction the README file, but using GSI make (which is GNU make) type: (+ multicore parallel build)
$> cd $EPICS_BASE && make distclean && make -j
Finally to add new paths to PATH etc.
$> cd $EPICS_HOME && . epics %EPICSBASE_VERSION

4.1 Obstacles


4.2 Compact - Compile



5 All Compact


-- PeterZumbruch - 2020-08-18

This topic: Epics > EpicsInstallationsAtGsi > EpicsInstallationsAtGsiBase
Topic revision: 2020-08-18, PeterZumbruch
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback | Legal notice | Privacy Policy (german)