To add the necessary modules to the Linux kernel, the setup program needs the following Linux packages:
The names of these packages vary depending on your Linux distribution.
In Red Hat Enterprise Linux, CentOS, and Fedora, the packages normally will be installed by the setup program. In other distributions, you need to install the packages if they are not installed or do not have the required versions.
Are the required packages already installed?
To check whether the packages are already installed, perform these steps:
cat /proc/version
This command returns lines similar to the following: Linux version 2.6.35.6 and gcc version 4.5.1
make -v
gcc -v
For gcc, ensure that the version returned by the command is the same as in the gcc version in step 1. For make, just ensure that the command runs.
yum list installed | grep kernel-devel
dpkg --get-selections | grep linux-headers
dpkg --get-selections | grep linux-image
In either case, ensure that the package versions are the same as in Linux version in step 1.
perl --version
If you see the information about the Perl version, the interpreter is installed.
Installing the packages from the repository
The following table lists how to install the required packages in various Linux distributions.
Linux distribution |
Package names |
How to install |
Red Hat Enterprise Linux
|
kernel-devel |
The setup program will download and install the packages automatically by using your Red Hat subscription. |
perl |
Run the following command: yum install perl |
|
CentOS Fedora
|
kernel-devel |
The setup program will download and install the packages automatically. |
perl |
Run the following command: yum install perl |
|
Ubuntu Debian |
linux-headers |
Run the following commands: sudo apt-get update |
SUSE Linux OpenSUSE |
kernel-source |
sudo zypper install kernel-source |
The packages will be downloaded from the distribution's repository and installed.
For other Linux distributions, please refer to the distribution's documentation regarding the exact names of the required packages and the ways to install them.
Installing the packages manually
You may need to install the packages manually if:
Obtain the packages from your local network or a trusted third-party website, and install them as follows:
rpm -ivh PACKAGE_FILE1 PACKAGE_FILE2 PACKAGE_FILE3
sudo dpkg -i PACKAGE_FILE1 PACKAGE_FILE2 PACKAGE_FILE3
Example: Installing the packages manually in Fedora 14
Follow these steps to install the required packages in Fedora 14 on a 32-bit machine:
cat /proc/version
The output of this command includes the following:
Linux version 2.6.35.6-45.fc14.i686
gcc version 4.5.1
kernel-devel-2.6.35.6-45.fc14.i686.rpm
gcc-4.5.1-4.fc14.i686.rpm
make-3.82-3.fc14.i686
rpm -ivh kernel-devel-2.6.35.6-45.fc14.i686.rpm
rpm -ivh gcc-4.5.1.fc14.i686.rpm
rpm -ivh make-3.82-3.fc14.i686
You can specify all these packages in a single rpm command. Installing any of these packages may require installing additional packages to resolve dependencies.