LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-06-2006, 04:45 AM   #1
Ayman.mashal
LQ Newbie
 
Registered: May 2005
Posts: 21

Rep: Reputation: 15
kernel source installation problem


Hi all

i installed FC4 on my laptop but without the SRPM

i need to install some drivers so now i need to install the kernel source .

i am trying to follow the steps in the release note doc.
but it doesnt work .

first i downloaded the source package which is
kernel-2.6.11-1.1369_FC4.src.rpm

but when i try to install it i get the error
error: cannot create %sourcedir /usr/src/redhat/SOURCES
(what is the problem here i created the folders
BUILD RPMS SOURCES SPECS SRPMS manualy !)

then after i use the command
rpmbuild -bp --target=noarch /usr/src/redhat/SPECS/kernel-2.6.spec

but afterward i cant find the src directory into /usr/src/redhat/BUILD/kernel-2.6.11/linux-2.6.11/usr

as in the doc.
cd /usr/src/redhat/BUILD/kernel-<version> /usr/src/

and what the $(arch) means in the rpmbuild ?

thanks
 
Old 02-06-2006, 12:29 PM   #2
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Have you tried installing from yum? That might be easier.
 
Old 02-07-2006, 07:36 AM   #3
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Quote:
Originally Posted by Ayman.mashal
but when i try to install it i get the error
error: cannot create %sourcedir /usr/src/redhat/SOURCES
(what is the problem here i created the folders
BUILD RPMS SOURCES SPECS SRPMS manualy !)
Odd... Don't know what the problem is here...

Since you used noarch in your rpmbuild command when you should've used $(arch), you should probably delete the kernel source you installed. You can do this by

Code:
cd /usr/src/redhat
rm -fr BUILD/* SOURCES/* SPECS/*
Then reinstall your source rpm (rpm -Uvh <kernel>.src.rpm).

Quote:
then after i use the command
rpmbuild -bp --target=noarch /usr/src/redhat/SPECS/kernel-2.6.spec
Change "noarch" to "$(arch)".

Quote:
but afterward i cant find the src directory into /usr/src/redhat/BUILD/kernel-2.6.11/linux-2.6.11/usr
No such directory will be created. Some driver build scripts look for /usr/src/linux. If that's the case, try this.

Code:
ln -s /usr/src/redhat/BUILD/kernel-2.6.11/linux-2.6.11 /usr/src/linux
 
  


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 installation lunar-blue Linux - Software 3 08-03-2005 06:39 PM
kernel source installation problem NL-Stitch Linux - Newbie 1 02-17-2005 02:20 AM
Kernel Source Installation permanooB Linux - Newbie 1 10-24-2004 03:21 PM
Kernel source installation. shankariyer Red Hat 4 12-01-2003 10:40 AM
Kernel 2.4.20-20.9 Source Installation ja_nch Red Hat 3 09-03-2003 12:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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