Monday, June 4, 2012

Unable to find kernel source for CentOS 5

Sometimes when installing an application that requrie the kernel source of the CentOS 5, somehow even with yum install of the kernel-devel, the application is not able to find, one reason among the whole host of possbilities is that the pathing of the source is incorrect

In my case, at CentOS 5.4
If you go to /lib/modules/{kernel-version}. In my case 2.6.18-164.el5, you will see that there is a the build has a red background to it, apparently the path is wrong. You have to correct the soft-link error

#cd /lib/modules
#ln -s /usr/src/kernels/2.6.18-164.9.1.el5-x86_64

You will notice that the /lib/modules/source is linked nicely to "build"

No comments: