LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-06-2006, 08:00 AM   #1
shamju
LQ Newbie
 
Registered: Sep 2006
Posts: 18

Rep: Reputation: 0
how to install kernel source


I'm not able to install kernel source.
Should I install kernel-devel package also?
Please help.

The following shows the commands used:

# rpm -ivh kernel-2.6.15-1.2054_FC5.src.rpm
warning: kernel-2.6.15-1.2054_FC5.src.rpm: Header V3 DSA
signature: NOKEY, key ID 4f2a6fd2
1:kernel
########################################### [100%]

# rpmbuild -bp --target=(uname -m)
/usr/src/redhat/BUILD/kernel-2.6.15


# rpm -q kernel-source
package kernel-source is not installed


# rpm -qa | grep kernel
kernel-devel-2.6.11-1.1369_FC4
kernel-2.6.15-1.2054_FC5

Thanks
Shamju Joseph
 
Old 09-06-2006, 08:04 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
do a
yum install kernel-devel
 
Old 09-06-2006, 08:13 AM   #3
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Quote:
# rpmbuild -bp --target=(uname -m)
/usr/src/redhat/BUILD/kernel-2.6.15
Nope, it is spelled out in the release notes;

cd /usr/src/redhat/SPECS
rpmbuild -bp --target $(uname -m) kernel-2.6.spec

Quote:
# rpm -q kernel-source
package kernel-source is not installed
This is normal and expected, source rpm files are not really installed in the same manner as a binary rpm packages.

Quote:
# rpm -qa | grep kernel
kernel-devel-2.6.11-1.1369_FC4
kernel-2.6.15-1.2054_FC5
Yep, see above. The release notes section for this;

http://fedora.redhat.com/docs/releas...ISO/#sn-Kernel
 
Old 09-06-2006, 10:29 AM   #4
shamju
LQ Newbie
 
Registered: Sep 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Thank you for the reply.
 
Old 09-13-2006, 10:36 AM   #5
kobbee
LQ Newbie
 
Registered: Sep 2006
Posts: 10

Rep: Reputation: 0
Hi, i'm quite new with linux...

i just installed an upgraded kernel for fc5, using
yum install kernel-devel
and yum install kernel

when i use this command: rpm -q kernel i get kernel-2.6.17-1.2174_FC5 but when i use this command

uname -r i still get 2.6.15-1.2054_FC5smp
. how do i rectify this
 
Old 09-13-2006, 10:50 AM   #6
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
you'd want to boot into the other kernel and try the uname -a command.
you have installed it, but on a reboot you should choose the newer kernel.
 
Old 09-13-2006, 12:15 PM   #7
kobbee
LQ Newbie
 
Registered: Sep 2006
Posts: 10

Rep: Reputation: 0
Thanks a lot.

there is also another error i'm encountering while running a make install for libpri
it says: #...then restorecon -v /usr/lib/libpri.so.1.0; fi
/bin/sh: restorecon: command not found

how do i solve that
 
Old 09-13-2006, 12:21 PM   #8
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
are you installing this with root priv?
if not do that and it should work.
or trying using
yum install libpri

Last edited by w3bd3vil; 09-13-2006 at 12:22 PM.
 
Old 09-13-2006, 12:24 PM   #9
kobbee
LQ Newbie
 
Registered: Sep 2006
Posts: 10

Rep: Reputation: 0
yes i am; i use #su
and then typed the password; but i'm still having same error
 
Old 10-02-2006, 12:20 PM   #10
m3mys3lf4ndi
Member
 
Registered: Mar 2005
Posts: 46

Rep: Reputation: 15
hi there,
im having problems with fresh install of fc5...
have to install somehow rt2500 (wireless card) to get access to the internet and thats a bit of a pain...
im sure that card works fine with ndiswrapper or even native drivers but i cant install any cos after "make" command im getting error that kernel sources are not found in place where system points to it. i've installed somehow (from rpm) kernel-devel-2.6.15-1.2054_FC5.i686.rpm wich i've downloaded via windoze but im stuck...

how to point to proper sources (and where are thay by defalut-coz it seems like i cant find em) during compilation, or make a ln to it or anything..

pls dont make me sit on this os..
gotta get this card working - than it should be smooth.
 
Old 10-02-2006, 08:54 PM   #11
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
If you are working off of a package-based distro, like Red Hat, then kernel source (and kernel development tools) are not strictly necessary, since you are not building the kernel from source. The kernel that is provided in your distro might not exactly match the supplied source-code (and configuration options, etc...) anyway.

By choosing to use a "stock" distro, you're relying upon the good folks at Red Hat to supply you with what you need. Which they do a good job of...
 
Old 10-03-2006, 08:09 AM   #12
m3mys3lf4ndi
Member
 
Registered: Mar 2005
Posts: 46

Rep: Reputation: 15
thx for reply but i cant execute "make" command to build rt2500 drivers or at least ndiswrapper to get my wifi working, becouse kernel sources are in some other place than program think they are...
when im trying to intall again kernel-devel pkg form rpm it says that its already installed.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure kernel source for standard debian kernel (module install) twinkers Debian 2 12-22-2005 11:19 AM
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM
10.1 install kernel and kernel-source different - build fails Feebles Mandriva 2 06-10-2005 06:58 PM
Cant install kernel source? keith2045 SUSE / openSUSE 10 02-26-2005 07:11 PM
slackware kernel source install (kernel 2.6.6) ? LinuxOG Slackware 22 06-06-2004 04:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:09 PM.

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