mac M2下虚拟机CentOS 8 安装上安装 Berkeley DB

问题:直接在centos8 yum安装db4-devel失败,只能手工安装

进入home目录,下载

复制代码
wget http://download.oracle.com/berkeley-db/db-4.6.21.tar.gz

解压

复制代码
tar -zxvf db-4.6.21.tar.gz

切到cd db-4.6.21的build_unix下

复制代码
cd db-4.6.21
cd build_unix

安装:

复制代码
../dist/configure --prefix=/usr/local/berkeleydb --enable-cxx

该步骤如果出现报错,看下报错内容: checking build system type... ../dist/config. guess: unable to guess system type This script, last modified 2007-05-17, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from http://savannah.gnu.org/cgi-bin/viewcvs/\*checkout\*/config/config/config.guess and http://savannah.gnu.org/cgi-bin/viewcvs/\*checkout\*/config/config/config.sub If the version you run (../dist/config.guess) is already up to date, please send the following data and any information you think might be pertinent to <config-patches@gnu.org> in order to provide the needed information to handle your system.)

此时的处理方法是

切到dist目录下,备份文件:

复制代码
#cd ../dist
#mv config.guess config.guess.bak
#mv config.sub config.sub.bak

然后下载config.guess config.sub

复制代码
#wget http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
#wget http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub

再重新执行上面一句

然后编译安装

复制代码
#make 
#make install

通知系统Berkeley DB的动态链接库在/usr/local/berkeleydb/lib/目录

复制代码
# echo '/usr/local/berkeleydb/lib/' >> /etc/ld.so.conf
# ldconfig

验证安装成功

复制代码
ls /usr/local/berkeleydb/lib/libdb*

ls /usr/lib64/libdb*
相关推荐
月屯14 小时前
平台消息推送(go)
数据库·后端·golang·cocoa·iphone·gin
superlls14 小时前
(Mysql)Mysql八股大杂烩
数据库·sql
張萠飛14 小时前
Phoenix+Hbase和Doris两个方案如何选择,能不能拿Doris完全替代Phoenix+Hbase?有什么难点?
大数据·数据库·hbase
艾莉丝努力练剑14 小时前
【Linux基础开发工具 (二)】详解Linux文本编辑器:Vim从入门到精通——完整教程与实战指南(上)
linux·运维·服务器·人工智能·ubuntu·centos·vim
q***718515 小时前
【玩转全栈】----Django基本配置和介绍
数据库·django·sqlite
学习编程的Kitty15 小时前
JavaEE进阶——Spring Boot项目
数据库·spring boot·java-ee
高铭杰16 小时前
mysql主备配置(对比postgresql)
数据库·mysql·replication
~~李木子~~21 小时前
MySQL 迁移总结报告
数据库·mysql
有梦想的攻城狮1 天前
通过Lettuce实现PB3格式对象在Redis中的存储与查询
数据库·redis·缓存·pb3
桦01 天前
MySQL【函数】
数据库·mysql