Open kv-sachin opened 4 years ago
facing the same problem, if you find the solution pls share it here thank you
did it work ?
I have fixed this error.
You should install kernel-devel. I just use CentOS 7.9.
Also you should find your kernel version.
ll /lib/modules/
Then you can install kernel-devel-version.
In my case kernel version was 3.10.0-1160.el7.x86_64
So used this command:
yum install kernel-devel-3.10.0-1160.el7.x86_64
then make and make
and make modules_install
works correctly.
Thanks.
While compiling ndpi facing and issue -
sudo make modules_install make -C src modules_install make[1]: Entering directory '/usr/src/ndpi-netfilter-master/src' make -C /lib/modules/4.19.67-amd64-vyos/build M=$PWD modules_install; make[2]: Entering directory '/usr/src/ndpi-netfilter-master/src' make[2]: /lib/modules/4.19.67-amd64-vyos/build: No such file or directory. Stop. make[2]: Leaving directory '/usr/src/ndpi-netfilter-master/src' Makefile:171: recipe for target 'modules_install' failed make[1]: [modules_install] Error 2 make[1]: Leaving directory '/usr/src/ndpi-netfilter-master/src' Makefile:8: recipe for target 'modules_install' failed make: *** [modules_install] Error 2
And when putting iptable rules it is giving following error -
sudo iptables -A OUTPUT -m ndpi --bittorrent -j DROP iptables: No chain/target/match by that name.