Installing snort on ubuntu Error 1: "C compiler cannot create executables" Fix: install libc6-dev Error 2: "C++ preprocessor "/lib/cpp" fails sanity check" Fix: install g++ It's still weird to me that certain development packages aren't installed by default. (It's fine that -dev libraries aren't installed, but g++?!) I remember being shocked the first time I saw a linux install without any compilers, and that was back in 99 or 2000. It's still weird, though. Partially it's just because I think of linux boxen as development toys (of course, I think of all computers except maybe windows gaming boxes as development toys), but even in this day in age, you need those packages if you're going to compile anything, and I regularly want to compile some bit of software. How do people deal with having to wait for binaries of everything? ... that said, I'm going to have to put some thought into preparing a snort package for debian so no one else has to do this. ;) Error 3: "checking for pcap_datalink in -lpcap... no" ERROR! Libpcap library/headers not found, go get it from http://www.tcpdump.org or use the --with-libpcap-* options, if you have it installed in unusual place Fix: install libpcap-dev (duh) Error 4: ./configure: line 22737: pcre-config: command not found ./configure: line 22743: pcre-config: command not found checking pcre.h usability... no checking pcre.h presence... no checking for pcre.h... no ERROR! Libpcre header not found, go get it from http://www.pcre.org Fix: Install libpcre-dev (+ required packages... as with the other things I installed.) Woot! ./configure runs now! Any make errors can have another entry, maybe. -- 人人都在进步,我们没有理由停止不前! | |||
|
评论