其他分享
首页 > 其他分享> > EPICS -- base的安装步骤详解

EPICS -- base的安装步骤详解

作者:互联网

环境准备:

  1. 安装平台:CentOS7
  2. 安装base的软件版本:base-7.0.3.1.tar.gz 下载地址
  3. 安装所依赖的软件包:readline-devel

安装过程:

[root@localhost ~]# yum install readline-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.sjtu.edu.cn
 * epel: fedora.cs.nctu.edu.tw
 * extras: ftp.sjtu.edu.cn
 * updates: ftp.sjtu.edu.cn
...

Package readline-devel-6.2-11.el7.x86_64 already installed and latest version
Nothing to do
[root@localhost ~]# cd /usr/local/
[root@localhost local]# mkdir /usr/local/EPICS
[root@localhost local]# cd EPICS/
[root@localhost EPICS]# pwd
/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
[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]# vim /etc/profile.d/epics.sh
[root@localhost EPICS]# cat /etc/profile.d/epics.sh
export EPICS_BASE="/usr/local/EPICS/base"
export EPICS_HOST_ARCH=`${EPICS_BASE}/startup/EpicsHostArch`
export PATH="${PATH}:${EPICS_BASE}/bin/${EPICS_HOST_ARCH}"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${EPICS_BASE}/lib/${EPICS_HOST_ARCH}"
[root@localhost EPICS]#
[root@localhost EPICS]# source /etc/profile.d/epics.sh  # 使环境变量生效
[root@localhost EPICS]# echo $EPICS_BASE   # 检查定义的环境变量
/usr/local/EPICS/base
[root@localhost EPICS]#
[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]#
[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.)

标签:--,EPICS,7.0,base,3.1,root,localhost
来源: https://blog.csdn.net/yuyuyuliang00/article/details/123520046