Centos安装ddd
2015-08-20 14:54
585 查看
转载自: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 openmotif
sudo 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 scope
strclass.C:1559: error: ‘EOF’ was not declared in this scope
strclass.C: In function ‘int readline(std::istream&, string&, char, int)’:
strclass.C:1589: error: ‘EOF’ was not declared in this scope
strclass.C:1602: error: ‘EOF’ was not declared in this scope
make[2]: *** [strclass.o] Error 1
make[2]: Leaving directory `/home/programer/install-package/ddd/ddd-3.3.12/ddd'
make[1]: *** [all] Error 2
make[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 clean
make
看到如下内容表示成功:
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.
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 openmotif
sudo 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 scope
strclass.C:1559: error: ‘EOF’ was not declared in this scope
strclass.C: In function ‘int readline(std::istream&, string&, char, int)’:
strclass.C:1589: error: ‘EOF’ was not declared in this scope
strclass.C:1602: error: ‘EOF’ was not declared in this scope
make[2]: *** [strclass.o] Error 1
make[2]: Leaving directory `/home/programer/install-package/ddd/ddd-3.3.12/ddd'
make[1]: *** [all] Error 2
make[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 clean
make
看到如下内容表示成功:
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.
相关文章推荐
- 迅为4412开发板Linux驱动教程/硬件知识及原理图的使用
- 查看linux服务器硬盘IO读写负载
- linux mdev入门介绍,即使用说明
- Note For Linux By Jes(2)-Linux文件与目录管理
- linux进程间同步和共享内存
- Linux 时钟处理机制
- Note For Linux By Jes(1)-Linux 的文件权限与目录配置
- Upgrade CentOS 7 kernel
- Linux环境PHP7.0安装
- centos 6.5 gem install mysql2 / tiny_tds 报错
- Linux安装maven
- linux 防火墙开端口(转)
- linux chmod命令
- Linux命令(三)
- windows 文档导入linux中的一些特殊字符
- Linux Top命令详解
- 迅为4412开发板Linux驱动教程/硬件知识及原理图的使用
- Linux查看物理CPU个数、核数、逻辑CPU个数
- centos 7 第一次启动hadoop生态之zookeeper-3.4.6
- linux 文件属性