Re: Snort3 installation problem on Ubuntu 20.04 : CMake Error: The following variables are used in this project, but they are set to NOTFOUND
Dorian ROSSE via Snort-users <[email protected]>
| Newsgroups | gmane.comp.security.ids.snort.general |
|---|---|
| Message-ID | <DB7P193MB034669629E52E92A0AB36CF3DADB9@DB7P193MB0346.EURP193.PROD.OUTLOOK.COM> |
Dear Dave, You should try with a line of command who locate flex example with this line of command who locate luajit on my system for built snort with luajit : '''sudo ./configure_cmake.sh --prefix=/usr/bin/ --with-luajit-libraries=~/snort_src/LuaJIT-2.0.5/ --with-luajit-includes=~/snort_src/LuaJIT-2.0.5/ --enable-tcmalloc''' Finally launch this command line : 'locate flex' Thus launch a build of snort where the two paths for flex are fill : '''sudo ./configure_cmake.sh --prefix=/usr/bin/ --with-flex-libraries=/path/to/flex --with-flex-includes=/path/to/flex/ --enable-tcmalloc''' I hope your success, Thanks you in advance for your answer, Regards. Dorian Rosse. ________________________________ From: Dave / Dalek Zone <[email protected]> Sent: Saturday, May 28, 2022 11:13:16 AM To: Dorian ROSSE <[email protected]> Cc: [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 Dorian, I now downloaded Snort 3.3.1.30.0 from snort.org, but the result was the same with cmake: ./configure_cmake.sh --prefix=/usr/local --enable-tcmalloc 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-3.1.30.0/src used as include directory in directory /root/snort-source-files/snort3-3.1.30.0/src used as include directory in directory /root/snort-source-files/snort3-3.1.30.0/src used as include directory in directory /root/snort-source-files/snort3-3.1.30.0/src [SNIP] With all best wishes, Dave On 2022-05-28 12:05, Dorian ROSSE wrote: > Dear Dave, > > There is a new version of snort if you want, > > For daq I advice to download it from the official page web snort, > > I hope your success, > > Thanks you in advance for your answer, > > Regards. > > Dorian Rosse. > ------------------------- > > From: Dave / Dalek Zone <[email protected]> > Sent: Saturday, May 28, 2022 11:00:52 AM > To: Dorian ROSSE <[email protected]> > Cc: [email protected] <[email protected]>; Joel > Esler <[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 Dorian, guys, > > Thanks for you rreply. My flex is installed from the apt package > (2.6.4) > > The version of Snort 3 I tried to compile is 3.1.28.0. > > gperftools is 2.9 from Github (manually compiled). > > Libdaq is also cloned from git. > > With all best wishes, > > Dave > > On 2022-05-28 10:15, Dorian ROSSE wrote: >> Dear Dave, >> >> I have too Ubuntu focal 20.04 if you happen a problem with flex > this >> isn't for all people because my flex works good but I haven't try to >> built flex with snort, >> >> I can help you if you want the weekend only because the week I >> haven't a computer, >> >> Because you use the package flex this isn't built with cmake you > can >> forgot my e-mail previous, >> >> This is interesting because on my snort I haven't try to built flex > I >> will try but this weekend I am in holiday sorry I haven't access to > my >> system Ubuntu, >> >> What version of snort you try to built ? >> >> Dear Joel this person try to built flex with snort can you share > with >> us what is the location of flex installation on a system linux or > can >> you answer what is the goal of flex on snort because there are some >> flex on GitHub but I don't understand what flex take, (I can run >> 'locate flex' but work a flex from GitHub can be interesting and a >> gflex packaged isn't a program installed on the snort source), >> >> Thanks you in advance Joel, >> >> Thanks you in advance for your question Dave, >> >> Regards. >> >> Dorian Rosse. >> ------------------------- >> >> From: Dave / Dalek Zone <[email protected]> >> Sent: Saturday, May 28, 2022 12:11:34 AM >> To: Dorian ROSSE <[email protected]> >> Cc: [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 Dorian, >> >> Thank you for your reply. I have Flex installed from the current apt >> package (version 2.6.4) on Ubuntu 20.04, whereas I downloaded Snort3 >> via >> 'wget >> https://github.com/snort3/snort3/archive/refs/tags/3.1.28.0.tar.gz' >> >> Similarly, gperftools is installed manually via 'wget >> > https://github.com/gperftools/gperftools/releases/download/gperftools-2.9/gperftools-2.9.tar.gz' >> >> Libdaq is also cloned from git (and compiled manually): 'git clone >> https://github.com/snort3/libdaq.git' >> >> The various other dependencies are installed via apt: 'apt install >> build-essential libpcap-dev libpcre3-dev libnet1-dev zlib1g-dev > luajit >> >> hwloc libdnet-dev libdumbnet-dev bison flex liblzma-dev openssl >> libssl-dev pkg-config libhwloc-dev cmake cpputest libsqlite3-dev >> uuid-dev libcmocka-dev libnetfilter-queue-dev libmnl-dev > autotools-dev >> >> libluajit-5.1-dev libunwind-dev' >> >> I will carefully re-read your message and Adrian Mamolea's message > in >> the coming hours, and will write back to the list. Thank you again, >> guys, for your help. >> >> With all best wishes, >> >> Dave >> >> On 2022-05-27 19:08, Dorian ROSSE via Snort-users wrote: >>> Dear adrian and dave, >>> >>> >>> I should understand good cmake, >>> >>> Does flex is build with cmake or you speak about snort ? >>> >>> If flex is build with cmake from what location do you download flex >>> because from my setup this is download by way packaged ? >>> >>> Thank you in advance for your answer, >>> >>> Regards. >>> >>> >>> Dorian rosse. >>> >>> -----Message d'origine----- >>> De : Snort-users <[email protected]> De la part > de >>> [email protected] >>> Envoyé : vendredi 27 mai 2022 14:00 >>> À : [email protected] >>> Objet : Snort-users Digest, Vol 60, Issue 18 >>> >>> Send Snort-users mailing list submissions to >>> [email protected] >>> >>> To subscribe or unsubscribe via the World Wide Web, visit >>> https://lists.snort.org/mailman/listinfo/snort-users >>> or, via email, send a message with subject or body 'help' to >>> [email protected] >>> >>> You can reach the person managing the list at >>> [email protected] >>> >>> When replying, please edit your Subject line so it is more specific >>> than "Re: Contents of Snort-users digest..." >>> _______________________________________________ >>> 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 _______________________________________________ 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