LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem installing Mandrake kernel source rpm (https://www.linuxquestions.org/questions/linux-newbie-8/problem-installing-mandrake-kernel-source-rpm-210110/)

Gibson 07-27-2004 02:28 AM

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?

Baldrick65 07-27-2004 04:38 AM

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

Gibson 07-27-2004 09:28 PM

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.

Baldrick65 07-28-2004 04:40 AM

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

Gibson 07-30-2004 01:42 PM

It took about 30 hours for it to finish, but it looks like it worked.


All times are GMT -5. The time now is 02:19 AM.