LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-21-2011, 05:30 AM   #1
Anup Abraham
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Rep: Reputation: 0
/lib/modules/2.6.18-92.el5/build: No such file


Hi friends,
I am trying to add new rules to iptable. I have installed centos.installed gcc, c++, kernel-devel etc
but while trying to run the code I am getting this error.
There are some codes about iptables, to add these rules I have to run a make file. When I tried to run make the error occurred . Any help is appreciated
root@localhost codes]# make
make: *** /lib/modules/2.6.18-92.el5/build: No such file or directory. Stop.
make: *** [modules] Error 2

What this error, how can I make it run. Do I have to change the kernelk version ???

Last edited by Anup Abraham; 03-21-2011 at 05:31 AM.
 
Old 03-21-2011, 05:35 AM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
http://www.centos.org/modules/newbb/...topic_id=16056
 
Old 03-21-2011, 06:53 AM   #3
Anup Abraham
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EDDY1 View Post
But when I type
yum install kernel-devel
it is downloading 2.6.18-192.32.el5, where I am running 2.6.18-92.el5. should i switch to the other kernel can I use the same kernel.
 
Old 03-21-2011, 07:49 AM   #4
sejdenfaden
LQ Newbie
 
Registered: Mar 2011
Location: Denmark, Aarhus
Distribution: Fedora 14 64-bit
Posts: 4

Rep: Reputation: 1
It seems that you are not running the newest edition of the kernel?

Is there any specific reason for this? If not try running:

su -c 'yum update kernel*'

To update to the newest kernel.
Then reboot, install the kernel-headers again and run make again.

If you have a reason to stay with the older edition of the kernel you must download and install the package manually. Link to headers
for your kernel(If you use 64-bit, be aware that you must get the 64-bit edition):

http://rpm.pbone.net/index.php3/stat....i686.rpm.html

And then install it manually.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] make: *** /lib/modules//build: No such file or directory. Stop. boidi Linux - Newbie 15 06-30-2010 02:54 AM
Recover /lib/modules/2.6.18-120.el5-i686 directory shoestom Red Hat 3 03-20-2010 05:21 PM
/lib/modules/kernel/build file broken vaishalicoep Linux - General 2 02-04-2009 03:53 AM
make: File not found: /lib/modules/2.6.18-elive/build/ clhona Linux - Software 3 08-08-2007 01:09 PM
No build file in lib/modules/* Mlehliw Linux - Newbie 1 08-06-2004 10:40 AM


All times are GMT -5. The time now is 06:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration