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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-13-2003, 02:05 PM
|
#1
|
Member
Registered: Jun 2003
Location: Unstable
Distribution: Slackware 9.1, Mandrake 9.1, SuSE 8.2, Mandrake 9.2
Posts: 108
Rep:
|
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?
|
|
|
08-13-2003, 02:20 PM
|
#2
|
Member
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987
Rep:
|
u need to install the kernel source rpm
download from one of mandrake's mirrors
|
|
|
08-13-2003, 02:24 PM
|
#3
|
Senior Member
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,573
|
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.
|
|
|
08-13-2003, 02:34 PM
|
#4
|
Member
Registered: Jun 2003
Location: Unstable
Distribution: Slackware 9.1, Mandrake 9.1, SuSE 8.2, Mandrake 9.2
Posts: 108
Original Poster
Rep:
|
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.
|
|
|
08-13-2003, 02:39 PM
|
#5
|
Member
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987
Rep:
|
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
|
|
|
08-13-2003, 03:13 PM
|
#6
|
Member
Registered: Jun 2003
Location: Unstable
Distribution: Slackware 9.1, Mandrake 9.1, SuSE 8.2, Mandrake 9.2
Posts: 108
Original Poster
Rep:
|
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.
|
|
|
08-13-2003, 04:08 PM
|
#7
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep: 
|
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.
|
|
|
08-13-2003, 04:16 PM
|
#8
|
Member
Registered: Jan 2003
Posts: 36
Rep:
|
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?
|
|
|
08-13-2003, 05:27 PM
|
#9
|
Member
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Pop_OS
Posts: 140
Rep:
|
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.
|
|
|
08-13-2003, 05:34 PM
|
#10
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep: 
|
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.
|
|
|
08-13-2003, 05:36 PM
|
#11
|
Member
Registered: Aug 2003
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Pop_OS
Posts: 140
Rep:
|
 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 
|
|
|
08-13-2003, 07:32 PM
|
#12
|
Member
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 04:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|