论坛: UNIX系统 标题: tcpdump 复制本贴地址    
作者: cimsxiyang [cimsxiyang]    版主   登录
在win下down了一个 tcpdump-3.7.1.tar.gz 
                  libpcap-0.7.1.tar.gz 
mount -t msdos /dev/hda1 /tmp/diskc
把这二个文件cp到/tmp下
tar zxf tcpdump-0.7.1.tar.gz
tar zxf libpcap-0.7.1.tar.gz
先安装libpcap
./configure
make
make install
然后安装tcpdump
./configure
make
make install
结束后
#tcpdump
command not find
但是,man tcpdump却可以得到帮助。
请问是什么原因?
os版本:
red hat linux 7.3





[此贴被 夕阳(cimsxiyang) 在 6月23日21时53分 编辑过]

地主 发表时间: 6/23 21:10

回复: cimsxiyang [cimsxiyang]   版主   登录
老大,你最近到哪去了?象个幽魂一样。帮忙看一下啊。我的好多程序都是这样的情况。

B1层 发表时间: 06/24 14:37

回复: TomyChen [tomychen]   论坛用户   登录
好像是
#tar zvfx xxxxx.tar吧?

B2层 发表时间: 06/24 15:13

回复: cimsxiyang [cimsxiyang]   版主   登录
跟这个没有关系吧
我把tar.gz包解开了就ok了。

B3层 发表时间: 06/24 16:31

回复: cimsxiyang [cimsxiyang]   版主   登录
老大,虽然我的问题菜了一点,但,你老也不用一声不啃啊!tcpdump我真的很需要啊。我需要观察一下DNS报文输出。


[此贴被 夕阳(cimsxiyang) 在 6月25日7时42分 编辑过]

B4层 发表时间: 6/25 7:38

回复: NetDemon [netdemon]   ADMIN   登录
那是tcpdump没有在路径中
whereis tcpdump 看看他在哪里,把它的路径加到你的配置文件中
或者
cd /path/of/tcpdump
./tcpdump


B5层 发表时间: 06/27 06:50

回复: fireblue [fireblue]   论坛用户   登录
夕阳不是说了在/temp下吗?
好象系统是是先搜索当前目录的啊。
夕阳,这个问题解决了说一下好吗

B6层 发表时间: 06/27 14:43

回复: cimsxiyang [cimsxiyang]   版主   登录
#whereis tcpdump
/usr/sbin/tcpdump ..................
#/usr/sbin/tcpdump host 192.168.0.12
.....................
.......................
#ln /usr/sbin/tcpdump /bin/tcpdump
#tcpdump..................


[此贴被 夕阳(cimsxiyang) 在 6月29日0时6分 编辑过]

B7层 发表时间: 6/29 0:47

回复: TomyChen [tomychen]   论坛用户   登录
嘻嘻,应该是
whereis -b

B8层 发表时间: 06/29 20:49

回复: cimsxiyang [cimsxiyang]   版主   登录
#whereis -b 也只是only for binaries
这个并不矛盾。

B9层 发表时间: 06/30 15:50

回复: sunshine [bysx]   论坛用户   登录
/usr/sbin/tcpdump,就可以运行.

B10层 发表时间: 07/02 13:11

回复: group [group]   论坛用户   登录
tmp目录下的是tar.gz
要运行还要看具体安装在哪个目录
如果没有加入路径,用whereis tcpdump找到,进入那个路径
用./tcpdump就可以了

B11层 发表时间: 07/02 20:12

回复: TomyChen [tomychen]   论坛用户   登录
tgz安装的文件一般会到/usr/loca/bin下.去看看

B12层 发表时间: 08/31 13:54

回复: syshunter [syshunter]   版主   登录
KAO ,KAO ,说了半天不还是,vi ~/.bash_profiles   ,   set PATH=/**/*

B13层 发表时间: 09/06 08:47

回复: TomyChen [tomychen]   论坛用户   登录
那你以为说什么呢?

B14层 发表时间: 09/06 14:43

回复: syshunter [syshunter]   版主   登录
我以为在讨论什么高深的东西,吓的我不敢看

B15层 发表时间: 09/08 17:03

论坛: UNIX系统

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号