linux安装cgdb
来源:互联网 发布:cgi网络内部请求错误 编辑:程序博客网 时间:2024/06/17 20:59
下载完cgdb之后,进入cgdb目录,执行:
$ ./configure --prefix=/usr/local
$ make
$ sudo make install
在第一步出现如下错误,则按下面方法解决:
出现错误:
configure: error: CGDB requires curses.h or ncurses/curses.h to build.
解决方案:
yum install ncurses-devel
出现错误:
configure: error: Please install makeinfo before installing
解决方案:
yum install install texinfo
出现错误:
configure: error: Please install help2man
解决方案:
yum install help2man
出现错误:
configure: error: CGDB requires GNU readline 5.1 or greater to link.
If you used --with-readline instead of using the system readline library,
make sure to set the correct readline library on the linker search path
via LD_LIBRARY_PATH or some other facility.
解决方案:
yum install readline-devel
出现错误:
configure: error: Please install flex before installing
解决方案:
yum install flex
安装好了以后,输入"cgdb 要调试的程序名“即可以进行调试,比如我这里调试mysql源码:
zhangyl 2016.11.30日补充:
cgdb不足之处:
cgdb中调用gdb的print命令无法显示字符串类型中的中文字符,要么显示乱码,要么不显示,这给程序调试带来了很大的困扰。
这点需要注意!!!
- linux安装cgdb
- cgdb安装与使用
- cgdb ubuntu 安装
- CentOS安装cgdb
- [centos7] CGDB安装
- CGDB
- CGDB
- CentOS 6.2上安装cgdb
- CGDB安装过程遇到问题
- CGDB的安装与使用
- cgdb---ubuntu14.04下安装cgdb及gdb的使用
- linux使用--13.ubuntu14.04下安装cgdb及程序调试
- Linux下的c/c++程序调试利器-----gdb/cgdb
- cgdb常用命令
- Linux下C/C++程序调试基础(GCC,G++,GDB,CGDB,DDD)
- Linux下C/C++程序调试基础(GCC,G++,GDB,CGDB,DDD)
- gdb/cgdb调试库函数
- CGDB显示汇编代码
- mybatis-generator扩展教程系列 -- 搭建MBG源码项目(入门铺垫篇)
- 设计师要懂布局(一)
- H5页面中的定时器(setTimeout)问题
- 页面多层iframe嵌套时,计算当前iframe到屏幕的距离
- Oracle 高级队列(AQ) 与JAVA JMS
- linux安装cgdb
- (45)聚合类、字面值常量类
- 网狐棋牌框架-WHDataQueue队列的问题
- JAVA入门基础
- SpringBoot自学笔记(四)
- 图像梯度(微分)及其MATLAB求解
- UICollectionView scrollToItemAtIndexPath 没有作用
- Linux上不错的EPUB阅读软件
- TangYuan使用教程-插件使用