CentOS gdb 설치

리눅스 gdb 설치

1 확인[ | ]

Console
Copy
[root@localhost ~]# gdb --version
-bash: gdb: command not found
[root@localhost ~]# rpm -qa gdb

2 설치[ | ]

Console
Copy
[root@localhost ~]# yum install gdb
... (생략)
======================================================================================================
 Package             Arch                   Version                        Repository            Size
======================================================================================================
Installing:
 gdb                 x86_64                 7.2-60.el6_4.1                 base                 2.3 M

Transaction Summary
======================================================================================================
Install       1 Package(s)

Total download size: 2.3 M
Installed size: 5.3 M
Is this ok [y/N]: y
Console
Copy
... (생략)
Installed:
  gdb.x86_64 0:7.2-60.el6_4.1                                                                         

Complete!

3 확인 2[ | ]

Console
Copy
[root@localhost ~]# rpm -qa gdb
gdb-7.2-60.el6_4.1.x86_64
Console
Copy
[root@localhost ~]# gdb --version
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 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/>.

4 같이 보기[ | ]