>> Edit article
이름
제목
패스워드
우선, portsentry.c 파일을 열어서 #endif DEBUG 라고 되있는 줄이 있으면, #endif 와 같이 지워줍니다. 그리고 나서 경로 설정을 좀 해주어야 합니다. 여전히 에러가 나거든요.. portsentry.h 파일을 열어서 다음 부분을 수정해줍니다. #include<pcap.h> 아래와 같이 #include <pcap/pcap.h> 수정해준뒤, bpf.h파일을 찾아봅니다. 저의 경우는 '/usr/include/pcap/net' 에 있을 겁니다. 저도 여기서 찾았거든요 ^^ 이파일을 '/usr/include/net' 디렉토리에다가 복사합니다. 그리고 컴파일 해보세요!! #make linux 그럼 성공하시길!! : 포트센트리는 전 버전에서도 설정파일의 경로가 틀린경우가 있었습니다. : 즉 설정을 하고 컴파일을 해야 정상적으로 되죠.. : 함, 설정파일및 configure 관련 경로를 꼼꼼히 체크해 보세요.. : : : : 설정을 다 해주고 컴파일을 하려고 하면 아래와 같은 에러가 : : 납니다. 얼핏 봐서는 파일이 없어서 그런것 같은데요.. : : : : 혹시 아시는 분 계시면, 도움 주셨으면 좋겠습니다. : : : : [root@fat81 portsentry-2.0b1]# make linux : : SYSTYPE=linux : : Making : : cc -O -Wall -D_BSD_SOURCE -o ./portsentry ./portsentry.c : : ./portsentry_io.c ./portsentry_util.c -lpcap : : In file included from ./portsentry.c:28: : : portsentry.h:63:18: pcap.h: 그런 파일이나 디렉토리가 없음 : : ./portsentry.c:595:8: warning: extra tokens at end of #endif directive : : ./portsentry.c:710:8: warning: extra tokens at end of #endif directive : : In file included from ./portsentry_io.c:28: : : portsentry.h:63:18: pcap.h: 그런 파일이나 디렉토리가 없음 : : In file included from ./portsentry_util.c:28: : : portsentry.h:63:18: pcap.h: 그런 파일이나 디렉토리가 없음 : : make: *** [linux] 오류1 : : -- : 서명 없습니당...
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved