Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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".
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.
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
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.