How to install kernel source?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to install kernel source?
# 1  
Old 11-12-2010
How to install kernel source?

During installation of one of driver i needed to

Remove any earlier version drivers using
make clean -r command.

Where i m getting following error.
Code:
# make clean -r
Kernel source is not installed
make: *** [kernelsrccheck] Error 1

My kernel version

Code:
# uname -r
2.6.18-128.2.1.4.9.el5xen

Where would i get kernel source ?
How should i install it.
# 2  
Old 11-12-2010
Try (as root) yum install kernel-devel
# 3  
Old 11-12-2010
Quote:
# yum install kernel-devel
Setting up Install Process
Parsing package install arguments
No package kernel-devel available.
Nothing to do
However i can see following options for O.S download.
Oracle VM Server 2.2.0 373M
Oracle VM Server 2.2.0 Source 600M

Will i get the kernel source in 2nd CD?
# 4  
Old 11-12-2010
Do a search for the keyword kernel, eg yum search kernel, and look through the package descriptions.
# 5  
Old 11-12-2010
confused over which one to install Smilie
Quote:
# yum search kernel
=============================== Matched: kernel ================================
nfs-utils.i386 : NFS utilities and supporting clients and daemons for the kernel
: NFS server.
MAKEDEV.i386 : A program used for creating device files in /dev.
SysVinit.i386 : Programs which control basic system processes.
crash.i386 : crash utility for live systems; netdump, diskdump, kdump, LKCD or
: mcore dumpfiles
device-mapper-multipath.i386 : Tools to manage multipath devices using device-
: mapper.
ebtables.i386 : Ethernet Bridge frame table administration tool
ethtool.i386 : Ethernet settings tool for PCI ethernet cards
iproute.i386 : Advanced IP routing and network device configuration tools.
ipsec-tools.i386 : Tools for configuring and using IPSEC
iptables.i386 : Tools for managing Linux kernel packet filtering capabilities.
iptables-ipv6.i386 : IPv6 support for iptables.
kernel.i686 : The Linux kernel (the core of the Linux operating system)
kernel-ovs.i686 : The Linux Domain-0 kernel compiled with latest Xen support
libaio.i386 : Linux-native asynchronous I/O access library
libselinux.i386 : SELinux library and simple utilities
libsepol.i386 : SELinux binary policy manipulation library
libsysfs.i386 : Shared library for interfacing with sysfs
libvolume_id.i386 : Dynamic libraries to get volume ids
lm_sensors.i386 : Hardware monitoring tools.
mcstrans.i386 : SELinux Translation Daemon
mkinitrd.i386 : Creates an initial ramdisk image for preloading modules.
module-init-tools.i386 : Kernel module management utilities.
pam.i386 : A security tool which provides authentication for applications
pciutils.i386 : PCI bus related utilities.
rdac-mpp-tools.i686 : Tools to manage multipath proxy driver using linuxrdac
rp-pppoe.i386 : A PPP over Ethernet client (for xDSL support).
setarch.i386 : Personality setter
sysklogd.i386 : System logging and kernel message trapping daemons.
syslinux.i386 : Simple kernel loader which boots from a FAT filesystem
udev.i386 : A userspace implementation of devfs
xen.i386 : Xen is a virtual machine monitor
xen-64.noarch : Xen is a virtual machine monitor
xen-debugger.noarch : Xen is a virtual machine monitor
---------- Post updated at 11:04 AM ---------- Previous update was at 08:43 AM ----------

I have got kernel-2.6.18-128.2.1.4.9.el5.src.rpm from the source CD .
Now i m confused how to install it .
As even running rpm -ivh kernel-2.6.18-128.2.1.4.9.el5.src.rpm
I m getting same error.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Trying to install libtool from source - newbie

Hey all, I am trying to configure software (Open Cascade) and I am receiving the following error: configure.ac:24: warning: macro `AM_PROG_LIBTOOL' not found in library I know I must be missing libtool, however, when I try and grab libtool (a lot of sites have the proper tarball and... (2 Replies)
Discussion started by: bphqk3
2 Replies

2. Linux

Create a bootable PXE image from build kernel source code

Hi, Can i just ask how I can create a bootable PXE image from the built kernel source. What files do I need to get? Thanks! (1 Reply)
Discussion started by: h0ujun
1 Replies

3. UNIX for Dummies Questions & Answers

Kernel Source files Confusion

I have open suse kernel kernel 3.1.0-1.2-desktop on which I used kernel source 3.1.10-1.2 downloaded from kernel.org and so I guess I am facing issues while loading kernel modules. I went to site kernel-source-3.1.0-1.2.1.noarch.rpm openSUSE 12.1 Free Download where it shows 2 rpm files... (0 Replies)
Discussion started by: rupeshkp728
0 Replies

4. BSD

BSD Kernel Source Code

Hi I need the BSD core (kernel) operating system Please let me download link I'm from Iran Please help me Thank you very much (1 Reply)
Discussion started by: sepadl71
1 Replies

5. UNIX for Dummies Questions & Answers

How to read freebsd kernel source?

I got the freebsd kernel source from the first install CD(in directory:\7.0-RELEASE\src\),isn't right? if so,how can i read it? Is there any tools? (4 Replies)
Discussion started by: zhouq3132
4 Replies

6. UNIX for Advanced & Expert Users

How to read freebsd kernel source?

I got the freebsd kernel source from the first install CD(in directory:\7.0-RELEASE\src\),isn't right? if so,how can i read it? Is there any tools? (1 Reply)
Discussion started by: zhouq3132
1 Replies

7. Debian

Kernel source not found. (can't install network card drivers)

I've had no luck with help on linuxquestions so I figured I'd try here. I'm using debian etch. The problem is that I can not install my network card because it says: Makefile:62: *** Linux kernel source not found. Stop. I have the kernel-headers installed. I've looked all over the... (9 Replies)
Discussion started by: Virtuality
9 Replies

8. BSD

Am searching for source code of openBSD kernel..

Hello Friends, Am lakshma reddy, doing my masters, i had some interest in exploring the source code of any open LINUX/UNIX, i searched for that i know i can get it but this time am finding it difficult in doing that. To be frank am new to this UNIX?LINUX platform. I need it since i want to... (1 Reply)
Discussion started by: luckyy
1 Replies

9. HP-UX

how install source file HP-UX

I want to install a source tar file using SAM . How do I do that? Also I want to update all installed software using SAM? (3 Replies)
Discussion started by: mwagz
3 Replies

10. UNIX for Advanced & Expert Users

Does anybody know Kernel-2.4.33 source rpm URL??

Hi Everybody, I want to download the kernel-2.4.33 source rpm.Does anybody know from where should i download?? As in kernel.org there are .gz or .bz2 versions of kernel packages are available. Any help is welcome. Thanks, Sriram (2 Replies)
Discussion started by: sriram.ec
2 Replies
Login or Register to Ask a Question