LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-02-2012, 09:34 AM   #1
newbie14
Member
 
Registered: Sep 2011
Posts: 646

Rep: Reputation: Disabled
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
 
Old 12-02-2012, 12:03 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
Old 12-02-2012, 12:19 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

.
 
Old 12-03-2012, 08:34 PM   #4
newbie14
Member
 
Registered: Sep 2011
Posts: 646

Original Poster
Rep: Reputation: Disabled
Dear All,
Thank you I will follow accordingly else will upgrade to centos 6.2 I guess is the best right. Thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Make Error (wireless realtek driver) (centos 6.3) humming777 Linux - Laptop and Netbook 1 10-08-2012 12:30 PM
Make file error code 1 make: *** [AIQ7] Error 1 raju39k Linux - Newbie 2 04-09-2012 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration