当前位置: 首页 > news >正文

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*

相关文章:

  • 【网络安全】SQL注入
  • 【idea】快捷键ctrl+shift+F(Find in files)不起作用
  • 单片机Day10
  • springboot做junit单元测试详细步骤
  • ActiveMQ 高级特性:延迟消息与优先级队列实战(二)
  • FEKO许可证的安全与合规性
  • ArcGIS+InVEST+RUSLE:水土流失模拟与流域管理的高效解决方案;水土保持专题地图制作
  • 力扣-94.二叉树的中序遍历
  • 力扣HOT100之二叉树:101. 对称二叉树
  • 工业协议跨界实录:零基础玩转PROFINET转EtherCAT主站智能网关
  • 51c大模型~合集127
  • MySQL 8.0 OCP 1Z0-908 题目解析(1)
  • 使用 OAuth 2.0 保护 REST API
  • Swift实战:如何优雅地从二叉搜索树中挑出最接近的K个值
  • dp自动化登陆之hCaptcha 验证码
  • websocketpp 安装及使用
  • wordpress主题分享
  • Datawhale AI春训营 day
  • 每日算法刷题Day4 5.12:leetcode数组4道题,用时1h
  • IDEA 插件推荐:提升编程效率
  • 外媒:初步结果显示,菲律宾前总统杜特尔特当选达沃市市长
  • 体坛联播|安切洛蒂执掌巴西男足,字母哥尝试离开雄鹿
  • 2025年度十大IP!IP SH荣膺文化综合类TOP10
  • 中国目的地·入境游简报006|外国网红游中国启示录
  • 巴西总统卢拉昨晚抵达北京
  • 新修订的《婚姻登记条例》明起施行,领证不用户口本了