centos7中安装最新版本的gdb
001、系统
[root@PC1 software]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.6.1810 (Core) Release: 7.6.1810 Codename: Core
002、查看gdb版本
[root@PC1 software]# gdb --version GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-114.el7 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>.
003、下载最新版gdb安装包,官网地址:https://ftp.gnu.org/gnu/gdb/
004、
[root@PC1 software]# tar -xzvf gdb-13.2.tar.gz [root@PC1 software]# cd gdb-13.2/ [root@PC1 gdb-13.2]# ./configure --prefix=/usr/ ## --prefix=/usr/参数实现自动配置环境变量 [root@PC1 gdb-13.2]# make [root@PC1 gdb-13.2]# make install
004、测试默认版本
[root@PC1 gdb-13.2]# gdb --version GNU gdb (GDB) 13.2 Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
。
分类:
linux shell
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
2022-07-17 linux 中shell统计fasta文件中每条染色体上的碱基数目
2022-07-17 linux shell统计 fasta文件中每条染色体上的碱基数
2022-07-17 linux 中删除匹配特定字符的行及其后的若干行
2022-07-17 linux 中 sed命令匹配特定字符之间的数据
2022-07-17 linux 中 sed匹配特定字符并输出其后的若干行
2021-07-17 linux系统中如何删除^M
2021-07-17 linux系统中实现文件指定列的互换