LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-13-2003, 02:05 PM   #1
Ken Ju-On
Member
 
Registered: Jun 2003
Location: Unstable
Distribution: Slackware 9.1, Mandrake 9.1, SuSE 8.2, Mandrake 9.2
Posts: 108

Rep: Reputation: 15
Kernel Source Location in Mandrake 9.1?


I'm trying to install the latest ALSA drivers in Mandrake 9.1 to solve a sizzling that always accompanies any sound I hear.

I downloaded the latest ALSA drivers from www.alsa-project.org. I unpacked the tarball, navigated to the unpacked directory with Konsole, and typed ./configure to run the configure script. (The first time I've ever typed ./configure in my entire life!) The last few lines of the output said:


Checking for kernel version... The file /usr/src/linux/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution or use --with-kernel=dir option to specify another dirctory with kernel sources (default is /usr/src/linux)


Seems like my kernel source isn't in /usr/src/linux. So I used the Find feature in Konqueror to search for any folders that would be named Linux and got about five others. I tried ./configure --with-kernel=dir replacing dir with all the paths that appeared in the Find Files result box. To no avail, that same message kept appearing.

I'm very excited since is the first time I've ever run a configure script (lame as though I may sound). Can anyone help me out on this one please?
 
Old 08-13-2003, 02:20 PM   #2
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
u need to install the kernel source rpm

download from one of mandrake's mirrors
 
Old 08-13-2003, 02:24 PM   #3
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
The linux kernel should be on your installation CDs. So, using UserDrak (or whatever installation tool Mandrake has), it should be relatively easy to install the kernel sources. Mandrake comes in different varieties -- Download, Standard, Powerpack, etc. Hopefully the version of Mandrake 9.1 that you have possesses the kernel sources. If not, you might be out of luck (though you could try the Mandrake web site, to see if they are there - they'll try to suck more money out of you to join their "club" before giving you access to any files, however). If your boxed set does not contain the kernel sources, I would not advise trying to get the generic source from the www.kernel.org. Only people who really know what they're doing should mess with this stuff. You may have to give up, or buy a boxed linux set with kernel sources included. Anyway, hope this helps.

Last edited by mark_alfred; 08-13-2003 at 02:26 PM.
 
Old 08-13-2003, 02:34 PM   #4
Ken Ju-On
Member
 
Registered: Jun 2003
Location: Unstable
Distribution: Slackware 9.1, Mandrake 9.1, SuSE 8.2, Mandrake 9.2
Posts: 108

Original Poster
Rep: Reputation: 15
Thanks. Isn't the Linux kernel source... erm... installed by default with Mandrake 9.1?

If Mandrake can guarantee that buying their distro will contain the kernel source, then I'd be more than happy to buy it since I like Mandrake.

Last edited by Ken Ju-On; 08-13-2003 at 02:36 PM.
 
Old 08-13-2003, 02:39 PM   #5
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
well, u don't need to join their club, just click the option saying that you already have and go to one of the ftp sites and download the source rpm for your kernel (u can see what kernel u are using with uname -r)

no, you are not out of luck, and most distros don't install sources
 
Old 08-13-2003, 03:13 PM   #6
Ken Ju-On
Member
 
Registered: Jun 2003
Location: Unstable
Distribution: Slackware 9.1, Mandrake 9.1, SuSE 8.2, Mandrake 9.2
Posts: 108

Original Poster
Rep: Reputation: 15
Thanks.

I searched the Mandrake website, and most probably to my sparking wit, I failed to find the source RPM for Mandrake 9.1. Can anybody please spare a moment to give me a link? I'd be most gratefu
l.
 
Old 08-13-2003, 04:08 PM   #7
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
It's already on the cds!
Go to Install Software in your menu, or the Mandrake Control Centre, and search for kernel.
Select the source package and there you go.

Or instead use the Mandrake Update menu item and download the latest Mdk kernel release and source rpms.
 
Old 08-13-2003, 04:16 PM   #8
friendklay
Member
 
Registered: Jan 2003
Posts: 36

Rep: Reputation: 15
The Kernel Source is on the CD

Like most have already said, the kernel source files are on the CD (there should be three CDs). This is quite different from source rpms (srpm).

On Redhat we have to choose Kernel Development for the source to be installed. Its not installed by default. I would expect much the same on Mandrake.

And just for extra infomation, compilers also do not get installed by "default", you will have to select development for them to get installed. BTW, what happend to SuSe Linux?
 
Old 08-13-2003, 05:27 PM   #9
Imyrryr
Member
 
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Pop_OS
Posts: 140

Rep: Reputation: 17
Question

Am I required to use the Mandrake kernel The latest "stable" kernel version is 2.4.21. Can I go to someplace like http://www.kernel.org and download and install that kernel

Last edited by Imyrryr; 08-13-2003 at 05:31 PM.
 
Old 08-13-2003, 05:34 PM   #10
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Please start a new thread if you have a new question, dont highjack others'.
Using the latest stable kernel is best, Mandrake's is 2.4.21-0.25mdk, as listed on their security site and the ftp mirrors. Run Mandrake Update, found in your KDE menu, or the Mandrake Control Centre.
You'll need the sources for whichever kernel version you're using atm to install things which require the kernel sources/header files to be installed. The latest drivers may require the latest kernel release.
 
Old 08-13-2003, 05:36 PM   #11
Imyrryr
Member
 
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Pop_OS
Posts: 140

Rep: Reputation: 17
Please disregard that last post. Got a serious case of the frain barts. Didn't read all of the previous posts! D'oh! Sorry for the wasted space
 
Old 08-13-2003, 07:32 PM   #12
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
here u go, the site:

http://www.mandrakesecure.net/en/adv...KSA-2003:066-2

upgrade to the latest kernel, which is 2.4.21-0.25mdk

this is straight from that page:

Upgrade

To upgrade automatically, use MandrakeUpdate.

If you want to upgrade manually, download the updated package(s) from one of our FTP server mirrors and upgrade with "rpm -Fvh *.rpm".

go to the ftp mirrors section, click on one of the mirrors and download kernel-2.4.21.0.25mdk-1-1mdk.i586.rpm and kernel-source-2.4.21-0.25mdk.i586.rpm (note: as u might notice these rpm's are built for i586, so once u install the kernel source, u may want to recompile)

to install, do rpm -Fvh filename.rpm for both those files
 
  


Reply



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 Location alltime Linux - General 2 10-18-2005 12:21 AM
kernel source location in fedora pwardy Fedora 13 07-12-2005 02:56 AM
location of mandrake 9.0 linux kernel source files Mariory Mandriva 3 12-20-2004 08:01 PM
Location of kernel source Echo Kilo Linux - General 2 12-19-2004 06:15 PM
location of kernel source joe_sixpack Linux - General 2 02-19-2004 03:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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