Linux - NewbieThis 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.
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.
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?
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
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.
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
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.
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.
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?
Location: 3rd electron on the left getting mugged by the nutrinos at Quarks
Distribution: Slackware 13.37, Slackware 14.0, Mint
Posts: 138
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
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.