怎样编译libdb_记一次USDT安装流程(附精简流程)

本文记录了在CentOS上编译OmniCore时遇到的Berkeley DB和Boost库缺失的问题,详细介绍了如何安装这两个依赖库,包括下载源码、编译和安装步骤,以及解决过程中遇到的错误和解决方案。
摘要由CSDN通过智能技术生成

躺坑安装

依赖:

$yum install libtool

$yum install gcc

$yum install gcc-g++

$yum install make

$yum install autoconfig

$yum install automake

先安装git:

yum install git

yum apt-get install pkg-config

usdt核心库:

git clone https://github.com/OmniLayer/omnicore.git

cd omnicore/

编译:

./autogen.sh //configuration failed, please install autoconf first 没有安装autoconf,先安装autoconf

./configure

make

//解压命名 tar -zxvf filename

安装autoconf和automake:

yum install -y autoconf

yum install automake

报错:

Makefile.am:8: error: Libtool library used but 'LIBTOOL' is undefined

Makefile.am:8: The usual way to define 'LIBTOOL' is to add 'LT_INIT'

Makefile.am:8: to 'configure.ac' and run 'aclocal' and 'autoconf' again.

Makefile.am:8: If 'LT_INIT' is in 'configure.ac', make sure

Makefile.am:8: its definition is in aclocal's search path.

/usr/share/automake-1.13/am/depend2.am: error: am__fastdepCXX does not appear in AM_CONDITIONAL

/usr/share/automake-1.13/am/depend2.am: The usual way to define 'am__fastdepCXX' is to add 'AC_PROG_CXX'

/usr/share/automake-1.13/am/depend2.am: to 'configure.ac' and run 'aclocal' and 'autoconf' again

/usr/share/automake-1.13/am/depend2.am: error: AMDEP does not app

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值