Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux source not found #99

Open
isabelle1208 opened this issue Jun 14, 2018 · 3 comments
Open

Linux source not found #99

isabelle1208 opened this issue Jun 14, 2018 · 3 comments

Comments

@isabelle1208
Copy link

Hi~
I have installed kernel-devel, and I run uname -a,
Linux localhost.localdomain 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux.
However, when i run ./configure, it shows that:
Kernel version: 3.10.0-514.el7.x86_64 (uname)
! Linux source not found. Don't panic. You may specify kernel source
! directory with --kdir=..., or try to install kernel-devel package,
! or just raw sources for linux-3.10.0-514.el7.x86_64 from kernel.org.
!
! Under Centos simply run this:
! root# yum install kernel-devel iptables-devel.x86_64 pkgconfig

Can you help me ? please !

@aabc
Copy link
Owner

aabc commented Jun 14, 2018

Hi, It may be that you installed kernel-devel package for different kernel version than you running. Try running rpm -qa 'kernel*' to see if versions align. You also may upgrade kernel and kernel-devel to the latest version and reboot.

@isabelle1208
Copy link
Author

[root@localhost ipt-netflow-master]# rpm -qa 'kernel*'
kernel-3.10.0-862.3.2.el7.x86_64
kernel-devel-3.10.0-862.3.2.el7.x86_64
kernel-3.10.0-514.el7.x86_64
kernel-headers-3.10.0-693.2.2.el7.x86_64
kernel-tools-3.10.0-514.el7.x86_64
kernel-tools-libs-3.10.0-514.el7.x86_64

Yes. There are differents versions. Should I update kernel and kernel-devel ? At the same time, must I remove previous versions ?

@aabc
Copy link
Owner

aabc commented Jun 14, 2018

Yes. No.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants