LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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
 
Thread Tools
Old 07-27-2004, 03:28 AM   #1
Gibson
LQ Newbie
 
Registered: Jul 2004
Location: Coral Springs, FL
Distribution: Mandrake, Fedora, Gentoo
Posts: 5
Thanked: 0
Problem installing Mandrake kernel source rpm


[Log in to get rid of this advertisement]
I'm running Mandrake 9.2 on an old desktop that I own. I recently tried to install the kernel source by doing:

[root@dimension root]# rpm -i kernel-2.4.22.10mdk-1-1mdk.src.rpm
warning: user nplanel does not exist - using root
warning: group nplanel does not exist - using root

After that it installs the following files in /usr/src/RPM/SOURCES/
linux-2.4.22-q10.tar.bz2
linux-2.4.22.tar.bz2
linux-mdkconfig.h
linux-merge-config.awk
linux-merge-modules-awk
README.kernel-sources
README.Mandrake

From what I've read, the source files are supposed to be installed in /usr/src/linux, but that directory doesnt get created, and there are some things that I'm trying to install that depend on the kernel source being in that directory. Does anyone know whats wrong and how to fix it?
Gibson is offline     Reply With Quote
Old 07-27-2004, 05:38 AM   #2
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: openSuSE 10.2
Posts: 653
Thanked: 0
Because this is a src.rpm, you first have to run the command
Code:
rpm --rebuild kernel-2.4.22.10mdk-1-1mdk.src.rpm
That will put kernel-2.4.22.10mdk-1-1mdk.rpm in the /usr/src/RPM/RPMS directory.

The last few lines of the output will tell you exactly where it went.

HTH
Baldrick
Baldrick65 is offline     Reply With Quote
Old 07-27-2004, 10:28 PM   #3
Gibson
LQ Newbie
 
Registered: Jul 2004
Location: Coral Springs, FL
Distribution: Mandrake, Fedora, Gentoo
Posts: 5
Thanked: 0

Original Poster
It said /usr/lib/rpm/rpmb: No such file or directory, so I created one, and then it said:
/usr/lib/rpm/rpmb: Permission denied.

I checked the /usr/src/RPM/SOURCES directory and no new files had been added.
Gibson is offline     Reply With Quote
Old 07-28-2004, 05:40 AM   #4
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: openSuSE 10.2
Posts: 653
Thanked: 0
OK, you need the rpm-build package. It's on the install CD's. Just open Mandrake Control Centre and do a search for it in Software Management. After it's installed, re-run the rpm --rebuild blahblah and it should work.

Baldrick
Baldrick65 is offline     Reply With Quote
Old 07-30-2004, 02:42 PM   #5
Gibson
LQ Newbie
 
Registered: Jul 2004
Location: Coral Springs, FL
Distribution: Mandrake, Fedora, Gentoo
Posts: 5
Thanked: 0

Original Poster
It took about 30 hours for it to finish, but it looks like it worked.
Gibson is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
problem building and installing rpm from ndiswrapper source steveman2000 Linux - Newbie 5 10-23-2005 08:01 PM
Installing kernel source rpm equus Fedora 4 02-08-2005 03:51 PM
Mandrake 9.2 Kernel Source RPM Weirdness pmurnane Linux - Newbie 3 05-04-2004 12:15 PM
kernel-source RPM problem Whosrodney Red Hat 7 09-30-2003 05:59 PM
Installing Kernel Source RPM eats85 Linux - Newbie 3 08-27-2003 02:04 PM


All times are GMT -5. The time now is 08:32 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration