免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2269 | 回复: 6
打印 上一主题 下一主题

[系统安装] redhat安装iptraf3报的错,怎么解决 [复制链接]

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2016-07-31 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-01-06 14:10 |只看该作者 |倒序浏览
redhat安装iptraf3报的错,什么意思?
[root@pzhjb-jk1 iptraf-3.0.0]# ./Setup

=====================================================================
IPTraf Version 3.0.0 Setup
Target Platform: Linux/x86_64
---------------------------------------------------------------------

>>>>>> COMPILING IPTRAF 3.0.0 FROM SUPPLIED SOURCE CODE

make: Entering directory `/tmp/iptraf-3.0.0/src'
rm -f *.o *~ core iptraf rvnamed rawtime
make -C ../support clean
make[1]: Entering directory `/tmp/iptraf-3.0.0/support'
rm -rf *.o *~ libtextbox.a libtextbox.so
make[1]: Leaving directory `/tmp/iptraf-3.0.0/support'
make: Leaving directory `/tmp/iptraf-3.0.0/src'
make: Entering directory `/tmp/iptraf-3.0.0/support'
rm -rf *.o *~ libtextbox.a libtextbox.so
make: Leaving directory `/tmp/iptraf-3.0.0/support'
make: Entering directory `/tmp/iptraf-3.0.0/src'
gcc -Wall  -DWORKDIR=\"/var/local/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/local/bin\" -I/usr/include/ncurses -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"Linux/x86_64\"     -c -o iptraf.o iptraf.c
gcc -Wall  -DWORKDIR=\"/var/local/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/local/bin\" -I/usr/include/ncurses -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"Linux/x86_64\"     -c -o itrafmon.o itrafmon.c
itrafmon.c: In function 鈥榗heckrvnamed鈥?
itrafmon.c:511: warning: not enough variable arguments to fit a sentinel
itrafmon.c: In function 鈥榠pmon鈥?
itrafmon.c:1044: warning: pointer targets in passing argument 3 of 鈥榩rocesspacket鈥?differ in signedness
gcc -Wall  -DWORKDIR=\"/var/local/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/local/bin\" -I/usr/include/ncurses -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"Linux/x86_64\"     -c -o packet.o packet.c
packet.c: In function 鈥榓djustpacket鈥?
packet.c:218: warning: pointer targets in passing argument 1 of 鈥榞et_tr_ip_offset鈥?differ in signedness
packet.c: In function 鈥榞etpacket鈥?
packet.c:286: warning: pointer targets in passing argument 6 of 鈥榬ecvfrom鈥?differ in signedness
gcc -Wall  -DWORKDIR=\"/var/local/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/local/bin\" -I/usr/include/ncurses -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"Linux/x86_64\"     -c -o tcptable.o tcptable.c
tcptable.c: In function 鈥榰pdateentry鈥?
tcptable.c:602: warning: pointer targets in passing argument 1 of 鈥榗onvmacaddr鈥?differ in signedness
tcptable.c:604: warning: pointer targets in passing argument 1 of 鈥榗onvmacaddr鈥?differ in signedness
tcptable.c:606: warning: pointer targets in passing argument 1 of 鈥榗onvmacaddr鈥?differ in signedness
gcc -Wall  -DWORKDIR=\"/var/local/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/local/bin\" -I/usr/include/ncurses -I../support -DVERSION=\"3.0.0\" -DPLATFORM=\"Linux/x86_64\"     -c -o othptab.o othptab.c
In file included from /usr/include/stdlib.h:438,
                 from tcptable.h:9,
                 from othptab.c:26:
/usr/include/sys/types.h:46: error: conflicting types for 鈥榣off_t鈥?
                                                                       /usr/include/linux/types.h:30: error: previous declaration of 鈥榣off_t鈥?was here
/usr/include/sys/types.h:62: error: conflicting types for 鈥榙ev_t鈥?
                                                                      /usr/include/linux/types.h:13: error: previous declaration of 鈥榙ev_t鈥?was here
In file included from /usr/include/sys/types.h:133,
                 from /usr/include/stdlib.h:438,
                 from tcptable.h:9,
                 from othptab.c:26:
/usr/include/time.h:105: error: conflicting types for 鈥榯imer_t鈥?
                                                                    /usr/include/linux/types.h:22: error: previous declaration of 鈥榯imer_t鈥?was here
In file included from /usr/include/stdlib.h:438,
                 from tcptable.h:9,
                 from othptab.c:26:
/usr/include/sys/types.h:198: error: conflicting types for 鈥榠nt64_t鈥?
                                                                         /usr/include/linux/types.h:98: error: previous declaration of 鈥榠nt64_t鈥?was here
/usr/include/sys/types.h:204: error: conflicting types for 鈥榰_int64_t鈥?
                                                                           /usr/include/linux/types.h:97: error: previous declaration of 鈥榰_int64_t鈥?was here
In file included from /usr/include/sys/types.h:220,
                 from /usr/include/stdlib.h:438,
                 from tcptable.h:9,
                 from othptab.c:26:
/usr/include/sys/select.h:78: error: conflicting types for 鈥榝d_set鈥?
                                                                        /usr/include/linux/types.h:12: error: previous declaration of 鈥榝d_set鈥?was here
In file included from /usr/include/stdlib.h:438,
                 from tcptable.h:9,
                 from othptab.c:26:
/usr/include/sys/types.h:235: error: conflicting types for 鈥榖lkcnt_t鈥?
                                                                          /usr/include/linux/types.h:114: error: previous declaration of 鈥榖lkcnt_t鈥?was here
In file included from /usr/include/netinet/in.h:23,
                 from /usr/include/netdb.h:28,
                 from tcptable.h:15,
                 from othptab.c:26:
/usr/include/stdint.h:56: error: conflicting types for 鈥榰int64_t鈥?
                                                                      /usr/include/linux/types.h:96: error: previous declaration of 鈥榰int64_t鈥?was here
othptab.c: In function 鈥榓dd_othp_entry鈥?
othptab.c:139: warning: pointer targets in passing argument 1 of 鈥榗onvmacaddr鈥?differ in signedness
othptab.c:141: warning: pointer targets in passing argument 1 of 鈥榗onvmacaddr鈥?differ in signedness
othptab.c:144: warning: pointer targets in passing argument 1 of 鈥榗onvmacaddr鈥?differ in signedness
othptab.c:146: warning: pointer targets in passing argument 1 of 鈥榗onvmacaddr鈥?differ in signedness
othptab.c:149: warning: pointer targets in passing argument 1 of 鈥榗onvmacaddr鈥?differ in signedness
othptab.c:151: warning: pointer targets in passing argument 1 of 鈥榗onvmacaddr鈥?differ in signedness
make: *** [othptab.o] Error 1
make: Leaving directory `/tmp/iptraf-3.0.0/src'
make: Entering directory `/tmp/iptraf-3.0.0/src'

*** Installing executable programs and preparing work directories

>>> Installing iptraf in /usr/local/bin
/usr/bin/install: cannot stat `iptraf': No such file or directory
>>> Installing rvnamed in /usr/local/bin
/usr/bin/install: cannot stat `rvnamed': No such file or directory
>>> IPTraf work directory /var/local/iptraf already exists
>>> IPTraf log directory /var/log/iptraf already exists
>>> IPTraf lockfile directory /var/run/iptraf already exists


*** iptraf, and rvnamed executables are in /usr/local/bin
*** Log files are placed in /var/log/iptraf

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2016-07-31 06:20:00
2 [报告]
发表于 2015-01-06 14:21 |只看该作者
有警告也有错误,都是说.c 源文件或头文件错误,这个软件不是开发调试好了的吗,难道每次安装都要像作者一样去调试程序哇?

论坛徽章:
18
处女座
日期:2014-11-13 15:52:322015亚冠之胡齐斯坦钢铁
日期:2015-08-14 16:09:082015亚冠之北京国安
日期:2015-06-02 18:41:152015亚冠之广州恒大
日期:2015-06-02 18:41:15NBA常规赛纪念章
日期:2015-05-04 22:32:032015年亚洲杯之中国
日期:2015-04-01 16:38:392015小元宵徽章
日期:2015-03-06 15:58:182015年亚洲杯之阿联酋
日期:2015-03-06 09:33:432015年辞旧岁徽章
日期:2015-03-04 13:32:472015年迎新春徽章
日期:2015-03-04 10:01:44拜羊年徽章
日期:2015-03-03 16:15:43洛杉矶快船
日期:2015-03-02 16:05:34
3 [报告]
发表于 2015-01-06 14:21 |只看该作者
有乱码,,
  1. # yum install iptraf
复制代码
yum安装吧。

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2016-07-31 06:20:00
4 [报告]
发表于 2015-01-06 14:25 |只看该作者
[root@pzhjb-jk1 iptraf-3.0.0]# yum install iptraf
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package iptraf available.
Nothing to do

装不了,要怎么注册?注册收费吗?

论坛徽章:
18
处女座
日期:2014-11-13 15:52:322015亚冠之胡齐斯坦钢铁
日期:2015-08-14 16:09:082015亚冠之北京国安
日期:2015-06-02 18:41:152015亚冠之广州恒大
日期:2015-06-02 18:41:15NBA常规赛纪念章
日期:2015-05-04 22:32:032015年亚洲杯之中国
日期:2015-04-01 16:38:392015小元宵徽章
日期:2015-03-06 15:58:182015年亚洲杯之阿联酋
日期:2015-03-06 09:33:432015年辞旧岁徽章
日期:2015-03-04 13:32:472015年迎新春徽章
日期:2015-03-04 10:01:44拜羊年徽章
日期:2015-03-03 16:15:43洛杉矶快船
日期:2015-03-02 16:05:34
5 [报告]
发表于 2015-01-06 15:18 |只看该作者
回复 4# txh2002

额。。
那你就直接去镜像站,如:163,阿里云等,下载centos里边对应你服务器系统版本的rpm包,然后安装试试。

例如:
http://mirrors.aliyun.com/centos ... 1-14.el6.x86_64.rpm

论坛徽章:
18
处女座
日期:2014-11-13 15:52:322015亚冠之胡齐斯坦钢铁
日期:2015-08-14 16:09:082015亚冠之北京国安
日期:2015-06-02 18:41:152015亚冠之广州恒大
日期:2015-06-02 18:41:15NBA常规赛纪念章
日期:2015-05-04 22:32:032015年亚洲杯之中国
日期:2015-04-01 16:38:392015小元宵徽章
日期:2015-03-06 15:58:182015年亚洲杯之阿联酋
日期:2015-03-06 09:33:432015年辞旧岁徽章
日期:2015-03-04 13:32:472015年迎新春徽章
日期:2015-03-04 10:01:44拜羊年徽章
日期:2015-03-03 16:15:43洛杉矶快船
日期:2015-03-02 16:05:34
6 [报告]
发表于 2015-01-06 15:24 |只看该作者
回复 4# txh2002


注册肯定是要收费的。。

你可以改yum源,按照这个帮助文档改下yum源:
http://mirrors.aliyun.com/help/centos

然后再yum安装。

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
7 [报告]
发表于 2015-01-07 08:10 |只看该作者
可以用iso架设本地源来yum,论坛有讨论过很多次,楼主搜索下吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP