Operation Manual

20 Copyright © Acronis International GmbH, 2002-2016
1. Run the following command to find out the kernel version and the required GCC version:
cat /proc/version
This command returns lines similar to the following: Linux version 2.6.35.6 and gcc
version 4.5.1
2. Run the following command to check whether the Make tool and the GCC compiler are installed:
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.
3. Check whether the appropriate version of the packages for building kernel modules is installed:
In Red Hat Enterprise Linux, CentOS, and Fedora, run the following command:
yum list installed | grep kernel-devel
In Ubuntu, run the following commands:
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.
4. Run the following command to check whether the Perl interpreter is installed:
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
gcc
make
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
gcc
make
The setup program will download and install the packages
automatically.
perl
Run the following command:
yum install perl
Ubuntu
linux-headers
linux-image
gcc
make
perl
Run the following commands:
sudo apt-get update
sudo apt-get install linux-headers-`uname -r`
sudo apt-get install linux-image-`uname -r`
sudo apt-get install gcc-<package version>
sudo apt-get install make
sudo apt-get install perl
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.