Re: Snort3 installation problem on Ubuntu 20.04 : CMake Error: The following variables are used in this project, but they are set to NOTFOUND
"Adrian Mamolea \(admamole\) via Snort-users" <[email protected]>
| Newsgroups | gmane.comp.security.ids.snort.general |
|---|---|
| Message-ID | <SN6PR11MB3229AB15D245AF77A8207051C2D99@SN6PR11MB3229.namprd11.prod.outlook.com> |
Hello Dave, I checked the instructions at the link you provided on a fresh VM with ubuntu 20.04 workstation, they seem to be OK (I found a few typos listed at the end of this email). In your case, it seems that cmake fails to configure flex. This is done in snort3/cmake/FindFlexLexer.cmake. I tried to recreate your issue first messing up with find_package. I requested a version of flex that I don't have, but the error signature was different. Next, I tried with find_path, and the failure signature matched. Perhaps on your host the header is at a different location? In my case I have it at /usr/include/FlexLexer.h. If this is the case, you can try to set FLEX_INCLUDE_DIR_HINT using option --with-flex-includes to match your location. If this is not your issue, you will have to debug cmake, perhaps by enabling -trace-expand in configure_cmake.sh when calling cmake. See cmake man page for details, the output is quite verbose and not easy to follow. If you just prefer to start from scratch on a fresh install, these are the errors that I found at the link you referenced: 1. before clone daq install git 2. to install daq you have to sudo 3. link to gperftools is bad, use wget https://github.com/gperftools/gperftools/releases/download/gperftools-2.9/gperftools-2.9.0.tar.gz 4. to install gperftools you have to sudo 5. link to snort is bad, use git clone https://github.com/snort3/snort3.git Regards, Adrian From: Snort-users <[email protected]> On Behalf Of Nihal Desai (nihdesai) via Snort-users Sent: Wednesday, May 25, 2022 12:34 PM To: Dave / Dalek Zone <[email protected]>; [email protected] Subject: Re: [Snort-users] Snort3 installation problem on Ubuntu 20.04 : CMake Error: The following variables are used in this project, but they are set to NOTFOUND Hello Dave: Have you tried running "sudo ldconfig"? Thanks! -- V/r Nihal N. Desai From: Snort-users <[email protected]<mailto:[email protected]>> on behalf of Dave / Dalek Zone via Snort-users <[email protected]<mailto:[email protected]>> Date: Wednesday, May 25, 2022 at 10:53 AM To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> Subject: [Snort-users] Snort3 installation problem on Ubuntu 20.04 : CMake Error: The following variables are used in this project, but they are set to NOTFOUND Hi I'm trying to install snort3 (snort version 3.1.29.0) on Ubuntu 20.04 following the instructions in https://linoxide.com/install-snort-on-ubuntu/ All goes well until I get to step 3 / sub-step 3. When I try to execute: ./configure_cmake.sh --prefix=/usr/local --enable-tcmalloc it fails with the error message: CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: FLEX_INCLUDES (ADVANCED) used as include directory in directory /root/snort-source-files/snort3/src used as include directory in directory /root/snort-source-files/snort3/src used as include directory in directory /root/snort-source-files/snort3/src used as include directory in directory /root/snort-source-files/snort3/src used as include directory in directory /root/snort-source-files/snort3/src used as include directory in directory /root/snort-source-files/snort3/src ... ...... Would you have any suggestions how I can get past this error, please? Does anyone know of a how-to on the Web that will work for Ubuntu 20.04? There is a whole bunch of them on multiple sites, but they all look like a copy-and-paste from one original article... Vytaly Gorbatov suspected that I did not have Flex installed, but in fact I do have flex 2.6.4 installed. With all best wishes, Dave _______________________________________________ Snort-users mailing list [email protected]<mailto:[email protected]> Go to this URL to change user options or unsubscribe: https://lists.snort.org/mailman/listinfo/snort-users To unsubscribe, send an email to: [email protected]<mailto:[email protected]> Please visit http://blog.snort.org to stay current on all the latest Snort news! Please follow these rules: https://snort.org/faq/what-is-the-mailing-list-etiquette _______________________________________________ Snort-users mailing list [email protected] Go to this URL to change user options or unsubscribe: https://lists.snort.org/mailman/listinfo/snort-users To unsubscribe, send an email to: [email protected] Please visit http://blog.snort.org to stay current on all the latest Snort news! Please follow these rules: https://snort.org/faq/what-is-the-mailing-list-etiquette