LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Missing Makefile and build in dynamic-preprocessor directory (https://www.linuxquestions.org/questions/linux-newbie-8/missing-makefile-and-build-in-dynamic-preprocessor-directory-4175604173/)

HashMan74 04-19-2017 12:36 PM

Missing Makefile and build in dynamic-preprocessor directory
 
2 Attachment(s)
Hi all,

I am installing and Configuring Snort on Ubuntu Desktop and Server.

Ubuntu Desktop
I was able to installed Snort on the desktop, but I got stall when trying to navigate to ~/snort_src/snort-2.9.9.0/src/dynamic-preprocessors/build/usr/local/lib/snort_dynamicpreprocessor/

The is no build in the dynamic-preprocessors directory. What do I do at this point?
see attachment.

Ubuntu Server

I was on the path ~/snort_src/snort-2.9.9.0 and ran the command ./Configure --enable-sourcefire the result failed to produce the makefile

I need your help.

Thanks in advance.

Shadow_7 04-19-2017 12:54 PM

Normally things like that need to be created via the auto tools (autoreconf?). The .am for the Makefile and the .ac for configure normally give it away. The steps should be detailed in the README/INSTALL .txt files if they exist for that source tree. Perhaps dh_autoreconf and friends on debian based distros can simplify things. Although not seeing a ./debian/ for your particular case. In either case the build instructions should be accessible from the source from which you obtained the thing.

HashMan74 04-19-2017 01:59 PM

Thanks Shadow 7, I am using the official snort installation manual from the snort website and a newbee. Can you please give me the directory for the ReadMe etc files?

Shadow_7 04-19-2017 02:50 PM

https://www.snort.org/documents

https://www.snort.org/faq

Looks like most of the README stuff is in the ./doc/ of the parent tree.

$ less ./doc/INSTALL

Otherwise

$ ./configure --help

NOT HERE --- ~/snort_src/snort-2.9.9.0/src/dynamic-preprocessors/build/usr/local/lib/snort_dynamicpreprocessor/

BUT HERE --- ~/snort_src/snort-2.9.9.0/doc/INSTALL

Along with many README's and a few .pdf's.

HashMan74 04-19-2017 04:17 PM

Thanks for the direction to the directory. I went through the INSTALL doc and I followed just that as it is in the snort.org website. I was in the ~/snort_src/snort-2.9.9.0 path and ran the command ./configure --enable-sourcefire

AwesomeMachine 04-19-2017 05:54 PM

You might be missing some dependencies. Try:
Code:

$ apt-get build-dep snort
and then try to configure snort.

HashMan74 04-20-2017 07:05 PM

Thanks once more AwesomeMachine, I tried adding some uri to my sources.list file but I cannot determine which uri is needed for this package download.

AwesomeMachine 04-20-2017 07:34 PM

Code:

$ sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ saucy universe multiverse"
$ sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ saucy-updates universe multiverse"

But use the version name of your distro, i.e. this one is saucy. I hope this helps.

HashMan74 04-20-2017 08:28 PM

I have these:
W: Target sources (InRelease/source/Sources) is configured multiple times in /etc/apt/Sources.list:53 and /etc/apt/Sources.list:54
W: Target sources (InRelease/source/Sources) is configured multiple times in /etc/apt/Sources.list:53 and /etc/apt/Sources.list:55
W: Target sources (universe/source/Sources) is configured multiple times in /etc/apt/Sources.list:68 and /etc/apt/Sources.list:70
W: Target sources (multiverse/source/Sources) is configured multiple times in /etc/apt/Sources.list:68 and /etc/apt/Sources.list:70
E: You must put some 'source' URIs in your sources.list

AwesomeMachine 04-20-2017 11:53 PM

OK, well, Chrome Browser can make you get messages like that. But look at the last one. And then run the commands I gave you with the correct version inserted were "saucy" is. That will add the apt sources to /etc/apt/sources.list.

Then edit /etc/apt/sources.list so there is a line that begins with "deb-src" for each line that begins with "deb". Just copy the line and append "-src" to it. Save the file and run:
Code:

$ apt-get update
Then run the apt-get build-dep command as above.

ohusain611 01-21-2019 03:35 PM

Hashman, I am getting the same thing, no 'Build' in the dynamic-preprocessors directory. I think this post is pretty old now, but do you remember getting this resolved, and how you solved it?

[QUOTE=HashMan74;5699297]Hi all,

I am installing and Configuring Snort on Ubuntu Desktop and Server.

Ubuntu Desktop
I was able to installed Snort on the desktop, but I got stall when trying to navigate to ~/snort_src/snort-2.9.9.0/src/dynamic-preprocessors/build/usr/local/lib/snort_dynamicpreprocessor/

The is no build in the dynamic-preprocessors directory. What do I do at this point?
see attachment.


All times are GMT -5. The time now is 02:19 AM.