Preparing Your Linux System
In Linux, kernel modules must be necessarily compiled with the same kernel header and source files, which the kernel itself was compiled with. Since KylixDriver needs Kernel Module named kdmodule.o (kdmodule.ko for 2.6 kernel), initially non-existent, you have to generate this module with the help of header and source files of the Linux kernel that correspond to your currently functioning Linux system.
Thus, the preliminary step to install KylixDriver is to properly configure your Linux system, if necessary. Do not let these words fool you because this is a really simple operation. Whoever may be your Linux distribution vendor, your task is constant ľ to add the following specific system components to your generic Linux system, or just check if these components are already present (in case if you do not remember whether you installed these components at once):
- Linux kernel sources and header files (Note: your Linux kernel can not be older than 2.4 version. Other than that, it also goes with no saying that Kylix version you are going to use should be (but not necessary!) certified for this Linux version & vendor pair.)
- GNU GCC compiler for KylixDriverĺs kernel part installation (Note: GCC compiler often comes pre-installed.)
- (Linux kernel modutils package)
Here are approximate steps to add the mentioned-above components to your system, if not present:
- Boot your Linux distribution and choose the Upgrade Mode
- Reach the list of all packages, find the mentionedľabove components, and choose to add them to the system. Just for example, on RedHat 7.2 the offered consecution is this: Development->System->(kernel-headers, kernel-source), then Development->Languages->gcc. And then allow the installation program to install all dependent packages. On RedHat 8.0 (as well as on most recent Linux distributions) simply choose the whole Kernel Development category and you will not miss! In a word, it is not difficult at all to do these steps on any Linux distribution.
Now it is time to install KylixDriver itself. This operation includes both installing the KylixDriver Application Library into all stocking Kylix IDEs and generating the KylixDriver Kernel Module - kdmodule.o (or kdmodule.ko) file. Fortunately, the whole installation process consists of the following steps:
- Copy the downloaded archive file kylixdriver.zip to your preferred directory.
- Make extraction from the archive file kylixdriver.zip by executing this command at a console/terminal prompt: unzip /<file location>/kylixdriver.zip. As a result, there will be created two files: kylixdriverXXX.tar (where XXX is the version number) and setup.sh.
- Go to the directory where setup.sh file is located.
- Execute this installation script at the console/terminal prompt (./setup.sh).
- Carefully read all the output produced and then interact with the script program as required.