Problem scenario
You install the Lua Just-In-Time package named luajit (e.g., with sudo apt-get -y install luajit). You are trying to install Snort. When you run the ./configure script, you get this error:
"
-- Checking for module 'luajit'
-- No package 'luajit' found
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
/usr/bin/luajit-2.0.4
/usr/share/luajit-2.0.4/jit
"
You tried this:
./configure_cmake.sh --with-luajit-libraries=/usr/share/luajit-2.0.4/jit/ --with-luajit-includes=/usr/bin
But that command failed too.
Solution
This is a work around. Installing snort from source can be difficult. Run these two commands:
sudo apt-get -y update
sudo apt -y install snort
If you are using a RedHat derivative, you may want to get a binary file to install it (e.g, from rpmfind.net).
To confirm snort was installed, run this:
snort --version