Skip to content

Instantly share code, notes, and snippets.

@tobin
Created May 4, 2012 10:03
Show Gist options
  • Save tobin/2593745 to your computer and use it in GitHub Desktop.
Save tobin/2593745 to your computer and use it in GitHub Desktop.
How to install EPICS on Linux

EPICS and MEDM on Ubuntu 9.10

I re-installed recently on a new Ubuntu 9.10 system. It was actually totally painless and just took 15 minutes.

The first step is to make a directory for the EPICS software to live in. It's conventional to put it in "/opt/epics". So make this directory:

cd /opt
sudo mkdir epics
sudo chown tobin epics

EPICS consists of the EPICS "base" software plus optional "extensions". First download the .tar.gz file containing the base distribution, and then unpack it into /opt/epics:

cd /opt/epics
tar -zxvf /home/tobin/Downloads/baseR3.14.11.tar.gz

The default directory name contains the version number of the base distribution.
It's nice to make a symbolic link so that the directory can be referenced as simply /opt/epics/base:

ln -s base-3-14-11/ base
cd base

export MY_EPICS_BASE=`pwd`
export EPICS_EXTENSIONS=/opt/epics/extensions
export BROWSER=`which google-chrome`
source startup/Site.profile

sudo apt-get install libreadline5 libreadline5-dev
make

cd ..
tar -zxvf /home/tobin/Downloads/extensionsTop_20070703.tar.gz
cd extensions/src
tar -tvf /home/tobin/Downloads/medm3_1_4.tar.gz

ln -s medm3_1_4/ medm
sudo apt-get install libxt-dev libmotif-dev x11proto-print-dev 
libxmu-headers libxp-dev libxmu-dev libxmu6
make

sshfs -o reconnect fricke@[redacted].caltech.edu:/cvs /cvs

export PATH=${PATH}:/opt/epics/base/bin/linux-x86_64
export EPICS_CA_ADDR_LIST=[redacted]

caRepeater
medm -x /cvs/cds/llo/medm/sitemap.adl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment