LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   help installing Snort (https://www.linuxquestions.org/questions/linux-software-2/help-installing-snort-4175591816/)

sniper8752 10-20-2016 06:08 AM

help installing Snort
 
I am trying to install snort 3.0. The installer told me that I was missing hwloc, so I did configure, then make all install. I went back into the snort directory, and got this:

Code:

pi@rpi /etc/snort/upgrade/git/snort3 $ sudo ./configure_cmake.sh --prefix=$my_path
Build Directory : build
Source Directory: /etc/snort/upgrade/git/snort3
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found DAQ: /usr/lib/libdaq_static.a 
-- Found DNET: /usr/include 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- Checking for module 'hwloc'
--  No package 'hwloc' found
CMake Error at cmake/FindHWLOC.cmake:6 (message):
 

          ERROR! hwloc library not found.

          Get it from https://www.open-mpi.org/projects/hwloc/

Call Stack (most recent call first):
  cmake/include_libraries.cmake:6 (find_package)
  CMakeLists.txt:18 (include)


-- Could NOT find hwloc (missing:  HWLOC_LIBRARIES HWLOC_INCLUDE_DIRS)
-- Checking for module 'luajit'
--  Found luajit, version 2.0.4
-- Found LuaJIT: /usr/local/lib/libluajit-5.1.so (found version "2.0.4")
-- Found OpenSSL: /usr/lib/arm-linux-gnueabihf/libssl.so;/usr/lib/arm-linux-gnueabihf/libcrypto.so (found version "1.0.1t")
-- Found PCAP: /usr/lib/arm-linux-gnueabihf/libpcap.so 
-- Performing Test PCAP_LINKS_SOLO
-- Performing Test PCAP_LINKS_SOLO - Success
-- Checking for module 'libpcre'
--  Found libpcre, version 8.31
-- Found PCRE: /usr/include 
-- Found SFBPF: /usr/include 
-- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.7")
-- install w3m to build all-in-one text user manual (missing:  W3M_EXE)
-- Checking for module 'libhs'
--  No package 'libhs' found
-- Could NOT find hs (missing:  HS_LIBRARIES HS_INCLUDE_DIRS)
CMake Error at cmake/platforms.cmake:17 (message):
  G++ version 4.8 or greater required
Call Stack (most recent call first):
  CMakeLists.txt:19 (include)


-- Configuring incomplete, errors occurred!
See also "/etc/snort/upgrade/git/snort3/build/CMakeFiles/CMakeOutput.log".
See also "/etc/snort/upgrade/git/snort3/build/CMakeFiles/CMakeError.log".


ardvark71 10-20-2016 06:41 PM

Hi...

What distribution and version of Linux are you running?

If you didn't actually install hwloc, you can see if it is included in your distribution's repositories, if it offers any. If not, you can download it here. I'm thinking "libhs" should be located in the repositories as well. :)

Regards...

John VV 10-21-2016 01:19 AM

by chance did you use the default "local" location and NOT use the "--prefix=/usr " in the configure line ???????
/usr/local/bin
/usr/local/lib
/usr/local/lib/pkgconfig
and so on...


i am betting you did and did not add that location to the pkgconfig path
nor add that location to the library path

sniper8752 10-21-2016 03:46 PM

Quote:

Originally Posted by John VV (Post 5620867)
by chance did you use the default "local" location and NOT use the "--prefix=/usr " in the configure line ???????
/usr/local/bin
/usr/local/lib
/usr/local/lib/pkgconfig
and so on...


i am betting you did and did not add that location to the pkgconfig path
nor add that location to the library path

so it should be:
Code:

sudo ./configure_cmake.sh --prefix=/usr
?

John VV 10-21-2016 04:07 PM

for cmake
see the man page on exporting the install location

sniper8752 10-21-2016 04:37 PM

Sorry - still lost.

I also installed it by "sudo apt-get install hwloc". But it still does not work.

John VV 10-21-2016 04:58 PM

for building from source you need the developer files
on a Debian based system that is "build-essentials" and the -dev.deb for the missing library

install the required DEV files
hwloc-dev

this will have the missing headers

sniper8752 10-21-2016 05:54 PM

Quote:

Originally Posted by John VV (Post 5621181)
for building from source you need the developer files
on a Debian based system that is "build-essentials" and the -dev.deb for the missing library

install the required DEV files
hwloc-dev

this will have the missing headers

Code:

pi@rpi /etc/snort/upgrade/git/snort3 $ sudo apt-get install hwloc-dev
Reading package lists... Done
Building dependency tree     
Reading state information... Done
E: Unable to locate package hwloc-dev
pi@rpi /etc/snort/upgrade/git/snort3 $ sudo apt-get install build-essentials
Reading package lists... Done
Building dependency tree     
Reading state information... Done
E: Unable to locate package build-essentials
pi@rpi /etc/snort/upgrade/git/snort3 $


ardvark71 10-21-2016 06:13 PM

Hi...

Again, what distribution and version of Linux are you running? If Ubuntu 16.04 (or other versions,) you can try installing hwloc from the .deb package here, although I don't see the hwloc-devel package specifically. "Build-Essential" is here.

Regards...

sniper8752 10-21-2016 06:17 PM

Raspbian is what I am running on it.

Linux 4.4.15+ armv6l GNU/Linux

Let me know if this helps, and there is anything else I can provide.

ardvark71 10-21-2016 06:41 PM

Quote:

Originally Posted by sniper8752 (Post 5621211)
Raspbian is what I am running on it.

Ok, thanks. There is a version for Raspbian here, although you will need to compile it.

However, you may be able to install the packages from Debian's site. Which repositories is your version of Raspbian using? Jessie's?

Regards...

sniper8752 10-22-2016 07:20 AM

I am not sure how to install this since there doesn't seem to be any instruction on doing so. I did ./configure, which seemed to run ok, but now am not sure where to go from here.

sniper8752 10-24-2016 05:40 PM

Can anybody please help me with this?

ardvark71 10-24-2016 09:34 PM

Quote:

Originally Posted by sniper8752 (Post 5622487)
Can anybody please help me with this?

Hi...

Not to try and sound rude but some of this you will need to investigate and take care of yourself. Also, you didn't answer my question from above, which was what repositories your copy of Raspbian is using. If you don't know, please Google how to find out. ;)

I did find a tutorial on how to install hwloc from source here. Take a look at "Part 0: installation." Did you install Hwloc as stated there? If Raspbian does use the Debian repositories, it might be easier to install from their site.

Regards...


All times are GMT -5. The time now is 03:42 AM.