LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-10-2007, 08:36 AM   #1
lizard_king825
Member
 
Registered: May 2006
Posts: 47

Rep: Reputation: 15
kernel source install help needed on fc6 x64


I am trying to install the kernel source.
I have downloaded kernel-2.6.20-1.2948.fc6.src.rpm
I am using fedora 6 64bit.
here are my current kernels:

kernel-headers-2.6.20-1.2948.fc6
kernel-devel-2.6.20-1.2944.fc6
yum-kernel-module-1.0.3-1.fc6
kernel-2.6.20-1.2944.fc6
kernel-devel-2.6.20-1.2948.fc6
kernel-2.6.20-1.2948.fc6


here is what I seen when I installed kernel-2.6.20-1.2948.fc6.src.rpm

rpm -ivh kernel-2.6.20-1.2948.fc6.src.rpm
1:kernel warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does not exist - using root
########################################### [100%]
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root


then when I ran:
rpmbuild -bp --target=$(uname -m) /usr/src/redhat/SPECS/kernel-2.6.spec

I seen this error:
+ Arch=x86_64
+ make ARCH=x86_64 nonint_oldconfig
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:117:
/usr/include/bits/socket.h:310:24: error: asm/socket.h: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.93770 (%prep)

suggestions or ideas?
thanks
 
Old 05-10-2007, 09:14 AM   #2
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: 56
You already have the kernel-headers the kernel-devel and the kernel rpm packages installed;

kernel-headers-2.6.20-1.2948.fc6
kernel-devel-2.6.20-1.2948.fc6
kernel-2.6.20-1.2948.fc6

You do not need the kernel source installed, you already have the equivalent, what are you attempting to do???
 
Old 05-10-2007, 09:22 AM   #3
lizard_king825
Member
 
Registered: May 2006
Posts: 47

Original Poster
Rep: Reputation: 15
ya for this application we are working on, need to have kernel sources installed to get this application installed,

suggestions/ideas?
thanks
 
Old 05-10-2007, 11:39 AM   #4
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: 56
Quoting from: http://docs.fedoraproject.org/releas...html#id2980667 section; 8.7. Building Only Kernel Modules

An exploded source tree is not required to build a kernel module, such as your own device driver, against the currently in-use kernel. Only the kernel-devel package is required to build external modules.
 
Old 05-13-2007, 09:45 AM   #5
lizard_king825
Member
 
Registered: May 2006
Posts: 47

Original Poster
Rep: Reputation: 15
yes I have followed that guide above is the errors I get doing that?
thanks
 
Old 05-13-2007, 11:04 AM   #6
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: 56
I would suggest that you download the kernel source again. I tried the source and it preps just fine on my system, maybe a bad download. I got the source directly from using wget;

wget ftp://chuck.ucs.indiana.edu/pub/linu...48.fc6.src.rpm
 
Old 05-14-2007, 03:05 AM   #7
nebneb333
LQ Newbie
 
Registered: May 2007
Posts: 7

Rep: Reputation: 0
Exclamation Please Help!!!

I followed all the steps and made an ISO for my Linux kernel but it is not letting me start up my comp with it! The steps as explained that I took are as follows : I downloaded the kernel in iso format, then saved it to cd (80 min/700mb), and then changed my start order to boot from cd-r first! what have I done wrong?
 
Old 05-14-2007, 03:22 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
please don't hijack other peoples threads.
 
Old 05-14-2007, 03:47 AM   #9
nebneb333
LQ Newbie
 
Registered: May 2007
Posts: 7

Rep: Reputation: 0
Unhappy Re: Please don't highjack other people's threads..

I apologize greatly and beg forgiveness! I don't really understand how to navigate this forum but I am getting the hang of it. Please ignore my rude interval and keep up the thread.

With much apology,
NEBNEB333

Last edited by nebneb333; 05-14-2007 at 03:51 AM.
 
Old 05-15-2007, 06:15 AM   #10
Prajakta Sawant
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
I m also not understanding how to add new query or new thread. I am searching for new thread button but I didn't get it.Please help me.
 
Old 05-15-2007, 04:34 PM   #11
lizard_king825
Member
 
Registered: May 2006
Posts: 47

Original Poster
Rep: Reputation: 15
I have now have my app installed and complied
thanks
 
  


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
kernel source / unifdef problems (FC6) silk600 Linux - Kernel 3 11-12-2006 08:04 PM
Kernel Source directory? Needed to install software jd5646 Fedora 7 09-24-2006 12:20 PM
can i run linux mandriver x64 with windows x64 bit if so wich one should i install fi malmac2000 Linux - Software 2 04-26-2006 07:04 AM
NVIDIA driver install problem."kernel source "needed ztdep Linux - Hardware 4 07-21-2005 01:50 AM
kernel source needed drum2jc Linux - Software 8 01-13-2005 04:36 AM


All times are GMT -5. The time now is 01:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration