LinuxQuestions.org
Visit Jeremy's Blog.
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 05-07-2012, 08:44 PM   #1
chenxiongni
LQ Newbie
 
Registered: Apr 2012
Posts: 12

Rep: Reputation: Disabled
Wink Kernel source is not installed


Hi All,

Firstly, i appreciate you spend your time take a look of this message.

I am new in Linxu, especially Centos 5.5. For some reason, we have to use CentOS 5.5 to talk to our Array Server via SAS card. i found out the SAS card driver on internet which is fine. however, when i try to install it by typing command: 'make clean'. i am getting following error:
Kernel source is not installed
make: *** [kernelsrccheck] Error 1

I have dome some research on internet and people suggested to install kernel header and also kernel devel. i have installed all those, as well as gcc. but i am still getting this error.

the version of the linux i am using is: 2.6.18-194.el5

I found out: ftp://ftp.redhat.com/pub/redhat/linu...r/en/os/SRPMS/

this ftp has kernel source rpm which match up my version. i then downloaded, and installed by command: rpm -ivh kernel-2.6.18-194.el5.src.rpm

after i done all that, i am still getting the same error message.

below is my ls -la result:

[root@mnf-sales linuxrdac-09.03.0C05.0504]# ls -la /usr/src
total 40
drwxr-xr-x 5 root root 4096 May 11 2011 .
drwxr-xr-x 14 root root 4096 May 8 09:49 ..
drwxr-xr-x 2 root root 4096 May 11 2011 debug
drwxr-xr-x 4 root root 4096 May 8 10:13 kernels
drwxr-xr-x 7 root root 4096 May 8 09:33 redhat



-------------

[root@mnf-sales linuxrdac-09.03.0C05.0504]# ls -la /usr/src/kernels
total 36
drwxr-xr-x 4 root root 4096 May 8 10:13 .
drwxr-xr-x 5 root root 4096 May 11 2011 ..
drwxr-xr-x 19 root root 4096 May 8 09:54 2.6.18-308.4.1.el5-x86_64
drwxr-xr-x 19 root root 4096 May 8 10:13 2.6.18-308.4.1.el5-xen-x86_64
lrwxrwxrwx 1 root root 29 May 8 10:13 2.6.18-308.4.1.el5xen-x86_64 -> 2.6.18-308.4.1.el5-xen-x86_64



Thank you for your help.

Andy
 
Old 05-07-2012, 09:18 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Lets start by checking what you have
Code:
# check current kernels

uname -a

cat /boot/grub/grub.conf

# check installed kernel rpms
rpm -qa | grep kern
You might also want to look at /etc/modprobe.conf
 
Old 05-07-2012, 10:06 PM   #3
chenxiongni
LQ Newbie
 
Registered: Apr 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Hi chrism01,

Thank you for your reply.

below is my result:


[root@localhost ~]# uname -r
2.6.18-308.4.1.el5



[root@localhost ~]# rpm -qa | grep kern
kernel-2.6.18-194.el5
kernel-devel-2.6.18-308.4.1.el5
kernel-xen-2.6.18-308.4.1.el5
kernel-headers-2.6.18-308.4.1.el5
kernel-2.6.18-308.4.1.el5
kernel-xen-devel-2.6.18-308.4.1.el5


Thank you.

Andy
 
Old 05-07-2012, 11:15 PM   #4
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 36
Had similar issues in past .
Have a look at following link.http://learnlinuxwithrohan.blogspot....using-yum.html
 
Old 05-08-2012, 02:34 AM   #5
chenxiongni
LQ Newbie
 
Registered: Apr 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Hi pinga123,

Thank you for replying me.

that web site make my life wonderful easy.

All good now.

Thank you.

Andy
 
  


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
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 09:21 PM
Kernel source needs to be installed..? Wolvenmoon Debian 14 08-18-2005 04:58 PM
how to get the kernel-source installed??? luqman Red Hat 3 03-10-2005 04:31 PM
installed kernel source with YAST, kernel not there alagenchev SUSE / openSUSE 1 11-14-2004 11:02 AM
Kernel Source Installed? How to tell? metsdada Linux - Newbie 13 01-02-2004 01:31 PM


All times are GMT -5. The time now is 07:17 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