Q. When I try to compile and install a driver downloaded from other website I get the error message:
You need to have the linux kernel source installed for this driver
How do I fix this problem and how do I install Linux kernel source code?
A. You need to install kernel source code and most important kernel headers in order to compile a driver or module.
The kernel headers are necessary if you require to install a driver for Nvidia, ndiswrapper, Cisco VPN, Vmware, Wireless card and many other drivers. If a driver requires kernel sources, it may be sufficient to install only the kernel headers.
Find running kernel version
First find out running kernel version, by typing:
$ uname -r
Output:
2.6.20-15-generic
Task: Install Kernel source and headers for Redhat Enterprise Linux or CentOS Linux
Use command to install both kernel source code and headers, enter:
# up2date kernel-source kernel-devel
If you are using RHEL/CentOS 5 or Fedora core, try:
# yum install kernel-source kernel-devel
Task: Download Kernel source code for running kernel
You can visit official Linux kernel website and install source code
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- My 10 UNIX Command Line Mistakes
- Linux: 20 Iptables Examples For New SysAdmins

- 25 PHP Security Best Practices For Sys Admins
- The Novice Guide To Buying A Linux Laptop
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
Facebook it - Tweet it - Print it -

