2021-06-17

Epics centos 8编译安装

最近要用到epics搭建测试环境,记录下。

centos全部用centos 8 系统默认安装。
Epics 用7.0 安装在/user/Epics/base 目录下

首先安装re2c
参考链接:https://hxmos.com/?p=61

下载

git clone https://git.code.sf.net/p/re2c/code-git re2c
git clone https://github.com/skvadrik/re2c.git

编译

cd re2c/re2c/
./autogen.sh // 若报错:re2c fatal: not a git repository (or any of the parent directories): .git,则不执行该命令,使用下面一行命令
// 如果从存储库(而不是从发行版tarball)进行构建,首先运行Autotools:
autoreconf -i -W all
./configure --prefix=/usr/local/re2c/
make
make install

设置全局变量

ln -sf /usr/local/re2c/bin/re2c /usr/local/bin/re2c

使用

re2c -v
re2c -h
rpcgen 安装

https://www.cmdschool.org/archives/5968

entOS8 Asyn-make编译时出现致命错误<rpc/rpc.h>

进入到root权限,然后打开asyn中的 /configure/CONFIG_SITE
你会看到如下几行代码:

Some linux systems moved RPC related symbols to libtirpc

To enable linking against this library, uncomment the following line

TIRPC=YES

yum install gcc gcc-c++ gcc-toolset-9-make readline-devel perl-ExtUtils-Install re2c
asyn依赖包
yum install rpcgen-devel tirpc-devel

dnf install gcc
dnf install gcc-c++
dnf install gcc-toolset-9-make
dnf install readline-devel
dnf install perl-ExtUtils-Install

seq依赖包
dnf install re2c

asyn
dnf install rpcgen-devel
dnf install tirpc-devel

https://blog.csdn.net/weixin_42066185/article/details/106405743
————————————————
版权声明:本文为CSDN博主「Lytt_going」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/Lytt_going/article/details/115254059

centos 7从头记录
yum -y install readline-devel

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值