[root@localhost ~]# cd /usr/local/
[root@localhost local]# mkdir /usr/local/EPICS
[root@localhost local]# cd EPICS/
[root@localhost EPICS]# pwd
/usr/local/EPICS
解压base软件包到/usr/local/EPICS下:
[root@localhost EPICS]# tar -xvzf /home/epics/base-7.0.3.1.tar.gz
base-7.0.3.1/LICENSE
base-7.0.3.1/Makefile
...
base-7.0.3.1/test/Makefile
base-7.0.3.1/test/tools/Makefile
base-7.0.3.1/test/tools/Snippets.plt
[root@localhost EPICS]# ls
base-7.0.3.1
为了在环境变量定义中,便于更换base版本,新建一个软链接:
[root@localhost EPICS]# ln -s base-7.0.3.1 base
[root@localhost EPICS]# ls
base base-7.0.3.1
[root@localhost EPICS]# ls -l
total 0
lrwxrwxrwx. 1 root root 12 Mar 16 10:41 base -> base-7.0.3.1
drwxr-xr-x. 8 root root 142 Mar 16 10:36 base-7.0.3.1
[root@localhost EPICS]# cd base
[root@localhost base]# make
make -C ./configure install
make[1]: Entering directory `/usr/local/EPICS/base-7.0.3.1/configure'
perl -CSD ../src/tools/makeMakefile.pl O.linux-x86_64 ../..
mkdir -p O.Common
make -C O.linux-x86_64 -f ../Makefile TOP=../.. \
...
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/usr/local/EPICS/base-7.0.3.1/modules/pva2pva/iocBoot/iocwfdemo'
make[3]: Leaving directory `/usr/local/EPICS/base-7.0.3.1/modules/pva2pva/iocBoot'
make[2]: Leaving directory `/usr/local/EPICS/base-7.0.3.1/modules/pva2pva'
make[1]: Leaving directory `/usr/local/EPICS/base-7.0.3.1/modules'
[root@localhost base]#
可以使用EPICS base命令行工具,以下是三个常用EPICS base命令行工具:
[root@localhost base]# caget
No pv name specified. ('caget -h' for help.)
[root@localhost base]# caput
No pv name specified. ('caput -h' for help.)
[root@localhost base]# camonitor
No pv name specified. ('camonitor -h' for help.)