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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
well i d/l a new gcc, and still no luck. the source is not where its supposed to be...how do i get it there? the only dir in /usr/src is "redhat" and within that, no source code....only several folders scattered around. how do i install the source? should i install a new kernel and go from there or no?
If you are trying to install gcc or upgrade it, you can use up2date (redhat's updater) and make it easy if you have it. If you want to install it FROM source, either way it doesn't install into /usr/src, it installs files into the /usr/lib, /usr/doc, /usr/bin etc...The last (the bin dir) is where you'll find executable files such as cpp etc...A new kernel shouldn't matter although more specific info on what you're doing might say otherwise...
well i made a mistake with the forum....i ended up starting a new thread instead of replying, but its no big deal haha....
i cant find the kernel source in RH 7.0....i tried installing it from the source cd, but that just scatters files everywhere, and doesnt install to /usr/src/linux-x.x.x....
my original point was that im trying to compile sound card drivers, and someone told me that 7.0 came with a broken compiler. i installed a gcc patch from rpmfind.net (or is it com) and that did nothing, because the source is still missing....
where is the kernel source and how can i put it where its supposed to be, so i can compile my drivers?
Ok, I gotcha. I'm unsure why after installing redhat there wouldn't be a /usr/src/linux-2.x.x directory containing the source, and likewise a /usr/src/linux symlink pointing to that directory. That being true, then i'd want to put the install cd in, find the rpm and install it and it should be there. The other option you specified, downloading another kernel is also a way to go. If you have the bandwidth, downloading the newest kernel 2.4.17 would probably be a good idear anyhow. Just untar or bunzip2 (.bz2 files are smaller) it to /usr/src and start the recompile process from there. You may just wanna do that.
well now it seems that i have a new problem. i obtained mandrake 8.1, after some begging, and i have the same problem....no kernel source. the rpm in the source cd....cd 3 if im not mistaken, just installs files wherever, and i cant find them at all. ive tried so hard!! maybe im still just stuck in the newbie world...
IIRC, RedHat kernel source RPM doesn't really install the kernel sources directly into /usr/src/linux... It puts a tarball into /usr/src/redhat/SOURCES and you have to untar that into /usr/src/linux and then apply patches. At least that's the way they used to do it in the 5.x days.
Originally posted by taz.devil I'm unsure why after installing redhat there wouldn't be a /usr/src/linux-2.x.x directory containing the source, and likewise a /usr/src/linux symlink pointing to that directory.
RedHat and Mandrake do not install the kernel source unless you select something on the order of "custom" and then "kernel developer" depending on the version. No kidding. With Mandrake 8.1 you may not need the kernel source as it uses the alsa sound package... which might work off of the shelf. Wasn't that the original reason for the compile? What kind of sound card?
well it was for an SB Audigy, which the alsa driver does not support yet. actually i got the driver from opensource.creative.com, which posts its linux drivers on sourceforge.
i did figure out how to install the kernel source, (thanks acid) and after toying with my internet connection for two weeks (which i still dont understand why it just "magically" started working), i finally got my dialup to work.