当前位置:网站首页>GDB安装过程问题
GDB安装过程问题
2022-07-20 05:53:00 【果冻cavalierly】
安装的GDB三个步骤就是
no termcap library found
1. 解压缩gdb 7.6.1源码包
cd /root/Downloads/
tar -zxvf gdb-7.6.1.tar.gz
2. 生成makefile
cd /root/Downloads/gdb-7.6.1
./configure
make
sudo make install
3. 将编译好的gdb拷贝到/usr/bin目录中
sudo cp /root/Downloads/gdb-7.6.1/gdb/gdb /usr/bin/gdb
4. 查看安装是否成功。
gdb -v
这是正常安装程序的步骤,但是在make的过程中报以下错误:
configure: WARNING: no enhanced curses library found; disabling TUI
checking for library containing tgetent... no
configure: error: no termcap library found
make[1]: *** [configure-gdb] 错误 1
很明显这是缺少一个termcap库,这是一个终端数据库,可以从官网下载一个版本的源码包,这里需要注意的是这个源码包也许要交叉编译,那是因为这个是你交叉编译gdb需要的库。
Download termcap sources from here: ftp://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz make make install安装之后这个库之后,在安装GDB就可以了。
边栏推荐
猜你喜欢
随机推荐
Server hardware and RAID configuration
Three handshakes and four disconnects in TCP
DNA 6. 基因组变异之绘制精美瀑布图(ComplexHeatmap)
Quickly understand shell scripts
JS笔试题--随机数,数组去重
JS面试题--ES5和ES6有什么区别?
Directory and file management
ENSP—NAT综合实验
Kettle optimization to improve MySQL read and write speed
中关村软件园项目进度汇报
北京双线机房的一些分析
微服务简介
「Object.defineProperty」【面试业务必备】
Become a blogger in a year? To! Struggling oneself
Quota of disks
Development history of Beijing BGP machine room
JS基础--Data
服务器硬件及RAID配置
English introductory notes
TCP中的三次握手和四次断开