Centos安装ddd
来源:互联网 发布:人力资源数据分析表 编辑:程序博客网 时间:2024/05/17 22:55
转载自:http://www.cnblogs.com/chezxiaoqiang/archive/2012/02/25/2674393.html
1. 下载DDD源码:http://ftp.gnu.org/gnu/ddd/. 现在的最新版本:ddd-3.3.12.tar.gz
2. 解压缩源码:tar xzf ddd-3.3.12.tar.gz
3. 进入ddd-3.3.12目录,运行./configure
报错:configure: error: The Motif include file 'Xm/Xm.h'
解决:缺少Motif开发库,安装openmotif,和openmotif-devel软件包。
sudo yum install openmotifsudo yum install openmotif-devel
重新configure
4. make
报错:g++ -DHAVE_CONFIG_H -I. -I./.. -O2 -g -Wall -W -Wwrite-strings -trigraphs -MT strclass.o -MD -MP -MF .deps/strclass.Tpo -c -o strclass.o strclass.C
strclass.C: In function ‘std::istream& operator>>(std::istream&, string&)’:strclass.C:1546: error: ‘EOF’ was not declared in this scopestrclass.C:1559: error: ‘EOF’ was not declared in this scopestrclass.C: In function ‘int readline(std::istream&, string&, char, int)’:strclass.C:1589: error: ‘EOF’ was not declared in this scopestrclass.C:1602: error: ‘EOF’ was not declared in this scopemake[2]: *** [strclass.o] Error 1make[2]: Leaving directory `/home/programer/install-package/ddd/ddd-3.3.12/ddd'make[1]: *** [all] Error 2make[1]: Leaving directory `/home/programer/install-package/ddd/ddd-3.3.12/ddd'make: *** [all-recursive] Error 1
解决:strclass.C文件缺少C头文件。
打开strclass.C,在如下位置加入#include <cstdio>
#include "strclass.h"#include "config.h"#include <ctype.h>#include <cstdio>#include <limits.h>#include <new>#include <stdlib.h>
make cleanmake
看到如下内容表示成功:make[2]: Leaving directory `/home/programer/install-package/ddd/ddd-3.3.12/ddd'make[1]: Leaving directory `/home/programer/install-package/ddd/ddd-3.3.12/ddd'make[1]: Entering directory `/home/programer/install-package/ddd/ddd-3.3.12'make[1]: Nothing to be done for `all-am'.make[1]: Leaving directory `/home/programer/install-package/ddd/ddd-3.3.12'
5. sudo make install
Enjoy it.
0 0
- CentOS安装DDD
- CentOS下安装ddd
- centos 安装 DDD
- Centos安装ddd
- centos下ddd的安装
- Centos安装DDD调试器
- centos ddd 安装,注意版本
- linux CentOS 安装DDD调试器详解
- linux安装DDD
- Linux下DDD的安装
- Fedora 14 安装 DDD过程
- 离线安装ddd调试器
- Linux下DDD的安装
- ddd
- ddd
- ddd
- ddd
- ddd
- 关于kindle无法联网(连wifi)解决方案
- 图结构练习——BFSDFS——判断可达性 SDUT 2138
- 九度oj 1098
- TI-BLE协议栈的GATT学习笔记-1
- 斩断一切看价值
- Centos安装ddd
- unity摄像机投影
- Maven学习总结(一)——Maven入门
- 如何察看显卡OpenGL的版本
- 网络流建模的一般方法
- 《Spring in Action 4》阅读札记
- 2015.08.20 联合更新数据库表(类似分组后取第一条数据的功能)
- IntelliJ Idea 常用快捷键列表
- [转载文章] 检测php网站是否已经被攻破的方法