LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux 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
 
Search this Thread
Old 07-27-2004, 02:28 AM   #1
Gibson
LQ Newbie
 
Registered: Jul 2004
Location: Coral Springs, FL
Distribution: Mandrake, Fedora, Gentoo
Posts: 5

Rep: Reputation: 0
Problem installing Mandrake kernel source rpm


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?
 
Old 07-27-2004, 04:38 AM   #2
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
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
 
Old 07-27-2004, 09:28 PM   #3
Gibson
LQ Newbie
 
Registered: Jul 2004
Location: Coral Springs, FL
Distribution: Mandrake, Fedora, Gentoo
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 07-28-2004, 04:40 AM   #4
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
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
 
Old 07-30-2004, 01:42 PM   #5
Gibson
LQ Newbie
 
Registered: Jul 2004
Location: Coral Springs, FL
Distribution: Mandrake, Fedora, Gentoo
Posts: 5

Original Poster
Rep: Reputation: 0
It took about 30 hours for it to finish, but it looks like it worked.
 
  


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


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

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