LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 959|回复: 9

安装snort时的问题--帮助新手呀,谢谢

[复制链接]
发表于 2004-7-30 16:00:25 | 显示全部楼层 |阅读模式
下面信息是make时的出错信息,执行./configure命令时都没问题。我是root登陆的,虽然通过Xmanager,但是在Linux本机执行这些操作一样是这样的。请问那些没有的文件我怎么弄到呢?谢谢

make all-recursive
make[1]: Entering directory `/root/snort/snort-2.1.1'
Making all in src
make[2]: Entering directory `/root/snort/snort-2.1.1/src'
Making all in sfutil
make[3]: Entering directory `/root/snort/snort-2.1.1/src/sfutil'
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src -I../../src/sfutil -I/usr/include/pcap -I../../src/output-plugins -I../../src/detection-plugins -I../../src/preprocessors -I../../src/preprocessors/flow -I../../src/preprocessors/portscan -I../../src/preprocessors/flow/int-snort -I../../src/preprocessors/HttpInspect/include -I/usr/include/pcre -g -O2 -Wall -c `test -f 'sfghash.c' || echo './'`sfghash.c
sfghash.c:36:20: string.h: \x{6CA1}\x{6709}\x{90A3}\x{4E2A}\x{6587}\x{4EF6}\x{6216}\x{76EE}\x{5F55}
In file included from sfghash.c:39:
sfghash.h:15:20: string.h: \x{6CA1}\x{6709}\x{90A3}\x{4E2A}\x{6587}\x{4EF6}\x{6216}\x{76EE}\x{5F55}
In file included from sfghash.h:18,
from sfghash.c:39:
sfhashfcn.h:8:20: string.h: \x{6CA1}\x{6709}\x{90A3}\x{4E2A}\x{6587}\x{4EF6}\x{6216}\x{76EE}\x{5F55}
sfghash.c: In function `sfghash_new':
sfghash.c:134: warning: implicit declaration of function `memset'
sfghash.c: In function `sfghash_add':
sfghash.c:274: warning: implicit declaration of function `strlen'
sfghash.c:298: warning: implicit declaration of function `strcmp'
sfghash.c:327: warning: implicit declaration of function `memcpy'
sfghash.c: In function `sfatom_add':
sfghash.c:715: warning: implicit declaration of function `strdup'
sfghash.c:715: warning: passing arg 2 of `sfghash_add' makes pointer from integer without a cast
make[3]: *** [sfghash.o] Error 1
make[3]: Leaving directory `/root/snort/snort-2.1.1/src/sfutil'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/snort/snort-2.1.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/snort/snort-2.1.1'
make: *** [all] Error 2
发表于 2004-7-30 17:52:09 | 显示全部楼层
configure 使用了什么选项?
 楼主| 发表于 2004-7-30 17:58:45 | 显示全部楼层
没用任何选项
发表于 2004-7-31 05:59:27 | 显示全部楼层
安装之前SNORT要装zlib、libpacp的
 楼主| 发表于 2004-8-2 09:03:28 | 显示全部楼层
libpacp,这个装了。
发表于 2004-8-2 15:34:33 | 显示全部楼层
tar -zxvf zlib*
cd zlib
./configure;make test
make install
tar -zxvf libpcap*
./configure
make
make install
如果数据库MYSQL在安装时,加入--with-mysql=MYSQL安装路径。
www.snort.org上有好资料的。
 楼主| 发表于 2004-8-3 09:31:12 | 显示全部楼层
skynet
再麻烦你一下,zlib和libcap一般都是在哪个目录下?是系统自带?还是snort这类软件里就有?我执行你的解压安装命令找不到那个文件。

下面是我locate zlib后显示的信息,谢谢!

/var/www/manual/mod/mod_php4/de/ref.zlib.html
/var/www/manual/mod/mod_php4/es/ref.zlib.html
/var/www/manual/mod/mod_php4/es/reserved.constants.zlib.html
/var/www/manual/mod/mod_php4/fr/ref.zlib.html
/var/www/manual/mod/mod_php4/it/ref.zlib.html
/var/www/manual/mod/mod_php4/ja/ref.zlib.html
/var/www/manual/mod/mod_php4/ja/reserved.constants.zlib.html
/var/www/manual/mod/mod_php4/ko/ref.zlib.html
/var/www/manual/mod/mod_php4/pt_BR/ref.zlib.html
/var/www/manual/mod/mod_php4/pt_BR/reserved.constants.zlib.html
/var/www/manual/mod/mod_php4/ref.zlib.html
/var/www/manual/mod/mod_php4/reserved.constants.zlib.html
/usr/X11R6/include/X11/extensions/lbxzlib.h
/usr/share/doc/zlib-1.1.4
/usr/share/doc/zlib-1.1.4/README
/usr/share/doc/zlib-devel-1.1.4
/usr/share/doc/zlib-devel-1.1.4/algorithm.txt
/usr/share/doc/zlib-devel-1.1.4/ChangeLog
/usr/share/doc/zlib-devel-1.1.4/example.c
/usr/share/doc/zlib-devel-1.1.4/minigzip.c
/usr/share/doc/python-docs-2.2.3/html/lib/module-zlib.html
/usr/share/apps/quanta/doc/php/ref.zlib.html
/usr/share/apps/quanta/tags/php/zlib.tag
/usr/share/man/man3/zlib.3.gz
/usr/share/aclocal/Installed_Packages/check_zlib.m4
/usr/include/zlib.h
/usr/include/bzlib.h
/usr/include/mozilla-1.4/zlib
/usr/include/mozilla-1.4/zlib/zconf.h
/usr/include/mozilla-1.4/zlib/zlib.h
/usr/include/mozilla-1.4/nss/jzlib.h
/usr/lib/python2.2/lib-dynload/zlibmodule.so
/usr/lib/python2.2/test/output/test_zlib
/usr/lib/python2.2/test/test_zlib.py
/usr/lib/python2.2/encodings/zlib_codec.py
/usr/lib/python2.2/encodings/zlib_codec.pyc
/usr/lib/python2.2/encodings/zlib_codec.pyo
/usr/lib/ruby/1.8/i386-linux-gnu/zlib.so
/usr/src/linux-2.4.22-1.2061.nptl/arch/ppc/boot/include/zlib.h
/usr/src/linux-2.4.22-1.2061.nptl/arch/ppc/boot/lib/zlib.c
/usr/src/linux-2.4.22-1.2061.nptl/arch/ppc64/boot/zlib.c
/usr/src/linux-2.4.22-1.2061.nptl/arch/ppc64/boot/zlib.h
/usr/src/linux-2.4.22-1.2061.nptl/fs/jffs2/compr_zlib.c
/usr/src/linux-2.4.22-1.2061.nptl/include/linux/zlib.h
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_deflate
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_deflate/Makefile
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_deflate/.depend
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_deflate/deflate_syms.c
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_deflate/deflate.c
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_deflate/deftree.c
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_deflate/defutil.h
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_inflate
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_inflate/Makefile
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_inflate/.depend
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_inflate/inflate_syms.c
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_inflate/infblock.c
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_inflate/infblock.h
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_inflate/infcodes.c
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_inflate/infcodes.h
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_inflate/inffast.c
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_inflate/inffast.h
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_inflate/inffixed.h
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_inflate/inflate.c
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_inflate/inftrees.c
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_inflate/inftrees.h
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_inflate/infutil.c
/usr/src/linux-2.4.22-1.2061.nptl/lib/zlib_inflate/infutil.h
 楼主| 发表于 2004-8-3 10:51:24 | 显示全部楼层
这是我下载libpcap 0.4版安装的错误信息,先./configure没问题,执行make时出现这个错误。安装别的软件时也总是说找不到string.h(还有其它别的一些头文件)这个文件


pcap-linux.c:45:20: string.h: 没有那个文件或目录
发表于 2004-8-3 16:03:03 | 显示全部楼层
rpm -qa | grep zlib
rpm -qa | grep libpcap
有,就不用安装了。、
你LINUX是REDHAT?
发表于 2004-8-3 16:04:36 | 显示全部楼层
现在是0.83了,去www.tcpdump.org/载。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表