LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-20-2016, 06:08 AM   #1
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Rep: Reputation: Disabled
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".
 
Old 10-20-2016, 06:41 PM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
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...
 
Old 10-21-2016, 01:19 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
Old 10-21-2016, 03:46 PM   #4
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
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
?
 
Old 10-21-2016, 04:07 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
for cmake
see the man page on exporting the install location
 
Old 10-21-2016, 04:37 PM   #6
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
Sorry - still lost.

I also installed it by "sudo apt-get install hwloc". But it still does not work.
 
Old 10-21-2016, 04:58 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
Old 10-21-2016, 05:54 PM   #8
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
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 $
 
Old 10-21-2016, 06:13 PM   #9
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
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...
 
Old 10-21-2016, 06:17 PM   #10
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
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.
 
Old 10-21-2016, 06:41 PM   #11
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by sniper8752 View Post
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...

Last edited by ardvark71; 10-21-2016 at 06:44 PM. Reason: Added request.
 
Old 10-22-2016, 07:20 AM   #12
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
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.
 
Old 10-24-2016, 05:40 PM   #13
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
Can anybody please help me with this?
 
Old 10-24-2016, 09:34 PM   #14
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by sniper8752 View Post
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...

Last edited by ardvark71; 10-24-2016 at 09:38 PM. Reason: Added wordage.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing SNORT thisguy Linux - Newbie 4 05-04-2014 05:16 PM
error in installing snort saurabh_gupta99 Linux - Software 9 04-20-2014 10:30 AM
snort installing problem ramesh14 Linux - Software 4 04-07-2011 09:35 AM
Installing and Configuring Snort winxandlinx Linux - Security 3 11-16-2006 10:56 PM
problems with installing SNORT gottin Linux - Software 1 08-03-2004 01:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration