參考:https://www.jianshu.com/p/1794c0fd94b6
最近需要通過gdb調試python進程,安裝python-debuginfo一直顯示找不到包,以下通過enable base-debuginfo repo,然后再安裝。
1、enable debug repo
編輯/etc/yum.repos.d/CentOS-Debuginfo.repo,將enable值從0改為1.
2、安裝kernel-debug-info、glibc
yum install -y kernel-debuginfo-$(uname -r) # 安裝debuginfo-install
yum install yum-utils
debuginfo-install glibc