LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Make error on centos 6.0 (https://www.linuxquestions.org/questions/linux-general-1/make-error-on-centos-6-0-a-4175439690/)

newbie14 12-02-2012 09:34 AM

Make error on centos 6.0
 
Dear All,
We trying to run a make command and get below errors. Checked /lib/modules/2.6.32-71.el6.i686/build and it exist what else to check or need to be installed?

Code:

make -C /lib/modules/2.6.32-71.el6.i686/build SUBDIRS=/home/test1/PF_RING-5.4.3/kernel EXTRA_CFLAGS='-I/home/test1/PF_RING-5.4.3/kernel -DSVN_REV="\"exported\""' modules
make: *** /lib/modules/2.6.32-71.el6.i686/build: No such file or directory.  Stop.
make: *** [all] Error 2


bathory 12-02-2012 12:03 PM

Hi,

The /lib/modules/<kernel-version>/build is a symlink to /usr/src/kernel-version>, so I guess you miss the kernel sources.
You need to install the kernel development package of your distro and running kernel version

Regards

knudfl 12-02-2012 12:19 PM

And : Updating the kernel is required too.
Only the latest 'kernel-devel' is available with yum.
( The versions of kernel, kernel-devel must be identical.)

'2.6.32-71.el6' is an old version.
Current is : 'kernel-devel-2.6.32-279.14.1.el6'.
http://mirror.centos.org/centos/6.3/...i386/Packages/


# yum install kernel kernel-devel
... And then reboot to use the new kernel.

.

newbie14 12-03-2012 08:34 PM

Dear All,
Thank you I will follow accordingly else will upgrade to centos 6.2 I guess is the best right. Thank you.


All times are GMT -5. The time now is 10:50 AM.