Linux Related EPICS Information

Log Files of My Building of EPICS R3.14.4/5/6/8/9/10 on Linux

(Jan.31.2004 for R3.14.4, Feb.5.2004 for R3.14.5, Aug.16.2004 for R3.14.6, Dec.13.2005 for R3.14.8, Mar.16.2006 for R3.14.8.2, Feb.10.2007 for R3.14.9, Oct.29.2008 for R3.14.10)

Environment

Xeon 2.4GHz, Linux-2.4.20 SMP, gcc-3.2.2, make-3.79.1, perl-5.8.0, tcsh-6.12.00 (Redhat 8)
make-3.81 for R3.14.10.
no Environmental variable defined other than EPICS_HOST_ARCH (and PATH) below

Source Files

download from APS and expand baseR3.14.4.tar.gz or baseR3.14.5.tar.gz or baseR3.14.6.tar.gz or baseR3.14.8.tar.gz or baseR3.14.8.2.tar.gz or baseR3.14.9.tar.gz or baseR3.14.10.tar.gz

Building base-3.14.{4,5,6,8,9,10} for linux-x86 (with gcc compiler)

cd base-3.14.{4,5,6,8,9,10}/
set EPICS_BASE=`pwd`
setenv EPICS_HOST_ARCH `startup/EpicsHostArch.pl`
echo $EPICS_HOST_ARCH
linux-x86
make | & tee base-3.14.4-make-linux.txt (R3.14.4)
make | & tee base-3.14.5-make-linux.txt (R3.14.5)
make | & tee base-3.14.6-make-linux.txt (R3.14.6)
make | & tee base-3.14.8-make-linux.txt (R3.14.8)
make | & tee base-3.14.8.2-make-linux.txt (R3.14.8.2)
make | & tee base-3.14.9-make-linux.txt (R3.14.9)
make | & tee base-3.14.10-make-linux.txt (R3.14.10)

Simple test

R3.14.9 or later
make runtests | & tee base-3.14.9-test-linux.txt (R3.14.9)
make runtests | & tee base-3.14.10-test-linux.txt (R3.14.10)

R3.14.8 or before
cd bin/$EPICS_HOST_ARCH
set LOG='tee -a logfile.txt'
foreach f (*TestHost epics*Test)
echo |& $LOG
echo ### $f |& $LOG
time ./$f |& $LOG
end
(result for R3.14.5 is here)
(result for R3.14.6 is here)
(result for R3.14.8 is here)
(result for R3.14.8.2 is here)
cd ..

(not too bad.)

IOC application test

cd $EPICS_BASE/.. ; mkdir app ; cd app
$EPICS_BASE/bin/$EPICS_HOST_ARCH/makeBaseApp.pl -t example myapp
$EPICS_BASE/bin/$EPICS_HOST_ARCH/makeBaseApp.pl -i -t example myapp
The following target architectures are available in base:
linux-x86
What architecture do you want to use? linux-x86
make | & tee make-app-linux.log
cd iocBoot/iocmyapp/
chmod +x st.cmd
./st.cmd
dbl
dbpr {record_name}
(now you can access your records over network via channel access.)

edm

Building edm-1.10.0c with epics-3.14.5 on linux

(sorry but this is obsolete, please use latest version, you may also try medm)

cd $EPICS_BASE/..
mkdir -p extensions/src
cd extensions
zcat $ARCHIVE/extensionsConfig_cvs.tar.gz | tar xf -
modify config/RELEASE (for location of epics-base)
cd src

zcat $ARCHIVE/edm-1-10-0c.tgz | tar xf -
cd edm
make |& tee edm-1.10.0c-3.14.5-make-linux-1.txt
pushd $EPICS_BASE/bin/linux-x86
ln -s ../../config/tools/makeMakefile.pl .
popd
make | & tee edm-1.10.0c-3.14.5-make-linux-2.txt
setenv HOST_ARCH `../../../base-3.14.5/startup/EpicsHostArch.pl`
make | & tee edm-1.10.0c-3.14.5-make-linux-3.txt
mkdir -p ../../lib/linux-x86
make | & tee edm-1.10.0c-3.14.5-make-linux-4.txt
pushd $EPICS_BASE/bin/linux-x86
ln -s ../../config/tools/installEpics.pl .
popd
make | & tee edm-1.10.0c-3.14.5-make-linux-5.txt

Running edm

setenv LD_LIBRARY_PATH $EPICS_BASE/lib/linux-x86:$EPICS_BASE/../extensions/lib/linux-x86
cd setup
sh setup.sh
setenv EDMPVOBJECTS .
setenv EDMOBJECTS .
setenv EDMHELPFILES ../helpFiles
setenv EDMDATAFILES .
setenv EDMFILES .
../../../bin/linux-x86/edm test.edl
ln -s ../edmMain/default.scheme .
ln -s ../edmMain/edmPrintDef .

Simple script example to start edm (edm.sh)

#!/bin/sh
# edm.sh
# k.furukawa, Feb.6.2004.
#
TOP=/usr/users/control/epics/R3.14.5.1
LD_LIBRARY_PATH=$TOP/base-3.14.5/lib/linux-x86:$TOP/extensions/lib/linux-x86:$LD_LIBRARY_PATH
EDMSRC=$TOP/extensions/src/edm
EDMPVOBJECTS=$EDMSRC/setup
EDMOBJECTS=$EDMSRC/setup
EDMHELPFILES=$EDMSRC/helpFiles
EDMDATAFILES=$EDMSRC/setup
EDMFILES=$EDMSRC/setup
export LD_LIBRARY_PATH
export EDMPVOBJECTS
export EDMOBJECTS
export EDMHELPFILES
export EDMDATAFILES
export EDMFILES
exec $TOP/extensions/bin/linux-x86/edm $*

Please note that I don't use it much yet.


[Please Comment on This Page]
Kazuro Furukawa <webmaster@mail-linac.kek.jp>, Feb.9.2004 - May.24.2009.
[ Tru64unix ]   [ Darwin ]   [ Windows ]  
[ Main ]   [ e-Linac-Int ]   [ e-Linac-Ext ]   [ J-Parc-Controls ]   [ J-PARC ]   [ Accelerator ]   [ KEK ]   [ JAERI ]   [ EPICS ]