Epics Base
From LNLEpicsWiki
EPICS base version 3.14.10 installation
In the following, commands starting with # are those given as the root, $ stays for a user of the group (EPICS) "developers".
1. Create a sub-directory in /otp for EPICS
# cd /opt # mkdir epics
2. Change the group ownership of /opt/epics to "developers"
# chgrp developers /opt/epics
3. Download the file baseR3.14.10.tar.gz from the website http://www.aps.anl.gov/epics/base/R3-14/10.php to /opt/epics by the default browser Mozilla Firefox
4. Uncompress the archive file baseR3.14.10.tar.gz
# cd /opt/epics # tar -zxvf baseR3.14.10.tar.gz
5. Change the group ownership of everithing in /opt/epics to "developers"
# chgrp -R developers /opt/epics
The following steps of installation are indicated in the readme file http://www.aps.anl.gov/epics/base/R3-14/10-docs/README.html
6. Run the script called EpicsHostArch.pl to make sure of your architecture
$ /opt/epics/base-3.14.10/startup/EpicsHostArch.pl linux-x86
7. Write the following two lines into the profile file /etc/profile to setup the needed environmental variables for EPICS
# vi /etc/profile EPICS_HOST_ARCH="linux-x86" export EPICS_HOST_ARCH
8. Apply changes in the profile and check
$ source /etc/profile $ env
9. Build EPICS Base
$ cd /opt/epics/base-3.14.10 $ make clean uninstall $ make
10. The Channel Access (CA) protocol needs the ports 5064 and 5065 to be open for both TCP and UDP, so we configured the firewall as follows
# system-config-securitylevel 5064 tcp (CA server) 5064 udp (CA server) 5065 tcp (repeater CA beacons) 5065 udp (repeater CA beacons)
11. You need to setup some additional environmental variables for an IOC to be running:
# vi /etc/profile EPICS_BASE=/opt/epics/base-3.14.10 (location of EPICS Base) export EPICS_BASE PATH=$PATH:/opt/epics/base-3.14.10/bin/linux-x86 (location of EPICS Base binaries) EPICS_CA_AUTO_ADDR_LIST=NO (do not look for IP addresses of all connected CA servers automatically) export EPICS_CA_AUTO_ADDR_LIST EPICS_CA_ADDR_LIST="192.168.39.97 192.168.39.98" (list of all IP's in the CA; the list is - of course - according to your system environment) export EPICS_CA_ADDR_LIST
12. Again, apply changes in the profile and check
$ source /etc/profile $ env
