Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to upgrade redhat 6.8 default gdb 7.2 to gdb 8.3.1

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

In this issue, the editor will bring you the operation method of upgrading redhat 6.8 default gdb 7.2 to gdb 8.3.1. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.

Recently, using gdb to debug and analyze the mysql 8.0.18 source code, it is found that the gdb version is too low to effectively track the mysql 8.0.18 source code. In addition, in order to compile and install the mysql 8.0.18 source code, the default gcc version was upgraded to gcc 8.3.1. Thus it can be seen that there is a compatible dependency between gcc and gdb versions.

Textinfo-6.6.tar.gz is installed

Gdb 8.3.1 installation Media

Http://ftp.gnu.org/gnu/gdb/

Extract the gdb 8.3.1 installation media

[root@mysql8018 gdb_dir] # tar zxvf gdb-8.3.1.tar.gz

[root@mysql8018 local] # cd / gdb_dir/

[root@mysql8018 gdb_dir] # ll

The total dosage is 37244

Drwxr-xr-x. 17 root root 4096 December 3 22:44 gdb-8.3.1

-rw-r--r--. 1 root root 38130999 December 3 22:28 gdb-8.3.1.tar.gz

Execute configure

[root@mysql8018 gdb-8.3.1] # export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mpc-1.1.0/lib:/usr/local/mpfr-3.1.2/lib:/usr/local/gmp-5.1.3/lib

[root@mysql8018 gdb-8.3.1] #

[root@mysql8018 gdb-8.3.1] # locate textinfo | grep-I-- color / bin

/ textinfo_dir/texinfo-6.6/tp/maintain/lib/libintl-perl/sample/simplecal/bin

/ textinfo_dir/texinfo-6.6/tp/maintain/lib/libintl-perl/sample/simplecal/bin/simplecal.pl

/ usr/local/textinfo-6.6/bin

[root@mysql8018 gdb-8.3.1] # export PATH=$PATH:/usr/local/textinfo-6.6/bin

[root@mysql8018 gdb-8.3.1] #

[root@mysql8018 gdb-8.3.1] #. / configure-prefix=/usr/local/gdb-8.3.1

Execute make

[root@mysql8018 gdb-8.3.1] # make

Execute make install

[root@mysql8018 gdb-8.3.1] # make install

Verify gdb 8.3.1

[root@mysql8018] # / usr/local/gdb-8.3.1/bin/gdb-- version

GNU gdb (GDB) 8.3.1

Copyright (C) 2019 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

The above is the operation method of upgrading redhat 6.8 default gdb 7.2 to gdb 8.3.1 shared by Xiaobian. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report