EPICS Archiver Appliance在Debian11下安装文档

本文很想标注转发,可是要转发链接,只好标注原创。

首先声明:本文档是合肥光源控制组孙晓康博士踩坑后整理的。我尝试过在Debian11和Rocky下安装,碰到坎过不去,这段时间各种事就没继续了,请教晓康时他自告奋勇的说帮我弄好,终于弄好了并整理出来文档,非常感谢!文档如下:

*******************************************************************

EPICS Archiver Appliance安装文档

  1. Archiver Appliance(AA)基于Debian 11/Bullseye系统
  2. 安装过程参考了https://github.com/jeonghanlee/epicsarchiverap-env教程

  1. 普通用户权限在/home/$USER目录下执行:

git clone https://github.com/jeonghanlee/epicsarchiverap-env.git

若没有git命令,可通过sudo apt-get install git来安装git

  1. cd /home/$USER/epicsarchiverap-env

make init

执行完此命令,会在当前目录下生成epicsarchiverap-src目录

  1. make install.pkgs

此命令用来安装AA相应的依赖软件,出现E: Package 'libmariadbclient-dev' has no installation candidate ln: failed to create symbolic link '/usr/bin/mysql_config' -> '': No such file or directory问题

解决如下:

sudo curl -LsSO https://mariadb.org/mariadb_release_signing_key.asc

sudo chmod -c 644 mariadb_release_signing_key.asc

sudo mv -vi mariadb_release_signing_key.asc /etc/apt/trusted.gpg.d/

sudo vim/etc/apt/sources.list

添加软件源:

deb [arch=amd64,arm64,ppc64el] https://mirrors.ustc.edu.cn/mariadb/repo/10.6/debian bullseye main'

sudo apt update

sudo apt install mariadb-server

make install.pkgs

  1. 在/home/$USER/epicsarchiverap-env目录下,执行以下命令:

make db.secure

make db.addAdmin

make db.show

make db.create

make db.show

make sql.fill

 make sql.show

  1. 安装并配置java、ant和maven环境:

git clone https://github.com/jeonghanlee/java-env.git

cd java-env

echo "INSTALL_LOCATION=${HOME} /epicsarchiverap-env/java-env" > configure/CONFIG_SITE.local

vim编辑java-env/CONFIG_JAVA:

注释以下内容:

JDK15_DOWN_URL=https://download.java.net/java/GA/jdk15.0.2/0d1cfde4252546c6931946de8db48ee2/7/GPL

JDK15_SRC=openjdk-15.0.2_linux-x64_bin.tar.gz

JDK15_URL=JDK15_URL="$(JDK15_DOWN_URL)/$(JDK15_SRC)"

JAVA_VERS+=JDK15

vim编辑RULES_JAVA:

注释掉:jdk15: _get.JDK15 _uninstall.JDK15 _install.JDK15

删掉jdk.install: jdk8 jdk11 jdk15 jdk.conf中的jdk15

安装wget:sudo apt install wget

执行:make install

检查本地路径配置,执行:make conf 

Java本地配置:

sudo apt install -y tree wget

ant:

执行bash /home/$USER/epicsarchiverap-env/scripts/install_java_pkgs_local.bash ant

OpenJDK11:

执行bash /home/$USER/epicsarchiverap-env/scripts/install_java_pkgs_local.bash jdk11

Maven:

执行bash /home/$USER/epicsarchiverap-env/scripts/install_java_pkgs_local.bash maven

Vars:

执行bash /home/$USER/epicsarchiverap-env/scripts/install_java_pkgs_local.bash vars

cd /home/$USER/epicsarchiverap-env

vim /configure/CONFIG_COMMON

将java版本号改为11,“JAVA_LOCAL_VER:=11”

make install.jdk

make conf.jdk

  1. 添加EPICS环境变量

vim ~/.bashrc,添加以下内容:

EPICS_CA_ADDR_LIST = localhost

EPICS_CA_AUTO_ADDR_LIST = YES

EPICS_CA_MAX_ARRAY_BYTES = 16384

source ~/.bashrc

  1. 编译和启动

cd /home/$USER/epicsarchiverap-env

make build

make install

make sd_start

make sd_status

  1. 系统工具控制AA:

systemctl start epicsarchiverap.service

systemctl status epicsarchiverap.service

systemctl stop epicsarchiverap.service

posted @ 2021-09-18 11:10  卡西莫多了  阅读(160)  评论(0编辑  收藏  举报