-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I encountered a small error when trying to 'make install' PF_RING on my RHEL
5.5 box:
# uname -a
Linux localhost.localdomain 2.6.18-194.26.1.el5 #1 SMP Fri Oct 29 14:21:16 EDT
2010 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
# make install
mkdir -p /lib/modules/2.6.18-194.26.1.el5/kernel/net/pf_ring
cp *.ko /lib/modules/2.6.18-194.26.1.el5/kernel/net/pf_ring
cp linux/pf_ring.h /usr/include/linux
cp linux/pf_ring.h /usr/src//include/linux/
cp: cannot create regular file `/usr/src//include/linux/': No such file or
directory
make: *** [install] Error 1
# ls /usr/src
debug kernels
So from the Makefile there is the line:
cp linux/pf_ring.h /usr/src/$(uname -r)/include/linux/
Looks like on RHEL 5.5, you need to add 'kernels' to the path, and the uname -r
does not return the x86_64 portion
either...In my case, the directory that needs to be found is:
/usr/src/kernels/2.6.18-194.26.1.el5-x86_64/include/linux
So, the line would need to be more like:
###Works fine on command line, not when used within Makefile
/usr/src/kernels/$(uname -r)-$(uname -p)/include/linux
on my system, but not sure if that's helpful in general for other distros...
Cheers,
Jesse
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org/
iEYEARECAAYFAk01/gIACgkQ5E4CHL/YJ2opvgCdErr2PEuT1FtP2z4CWcnEBwMR
nsoAoIaAVuvygUxuq1e5zmBTUeMUoouv
=NAjH
-----END PGP SIGNATURE-----
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev