RHEL7/CENTOS7編譯安裝支持PYTHON腳本的GDB8.3.1

首先需要安裝以下依賴:

yum install python-devel expat-devel  expat  ncurses-devel ncurses

下載GBD8.3.1的源碼並解壓

./configure --with-python
make -j16
make install

進行安裝,安裝完可以安裝GDB插件GEF,參看官網安裝方法:https://gef.readthedocs.io/en/master/

參考:
https://stackoverflow.com/questions/26243956/how-to-change-the-python-interpreter-that-gdb-uses
https://stackoverflow.com/questions/10792844/python-missing-or-unusable-error-while-cross-compiling-gdb
https://www.jianshu.com/p/0a338c0ac200

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章