LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   new compiler, still no source (https://www.linuxquestions.org/questions/linux-newbie-8/new-compiler-still-no-source-14207/)

icyfire 02-13-2002 06:59 PM

new compiler, still no source
 
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?

thankz.

taz.devil 02-13-2002 08:16 PM

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...

icyfire 02-13-2002 11:25 PM

kernel source
 
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?

thanx taz.

taz.devil 02-14-2002 08:10 AM

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.

icyfire 02-19-2002 01:16 PM

figures.....new DISTRO, still no source
 
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. :cry: ive tried so hard!! maybe im still just stuck in the newbie world...

acid_kewpie 02-19-2002 01:28 PM

kernel source is on the 2nd cd

/mnt/cdrom/Mandrake/RPMS2/kernel-source-2.4.8-26mdk.i586.rpm

Malicious 02-19-2002 02:02 PM

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.

finegan 02-20-2002 07:13 PM

Quote:

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?

Cheers,

Finegan

icyfire 02-20-2002 07:37 PM

thanks everyone
 
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.

thanks everyone!

im posting from linux, and im never going back!

:Pengy:


All times are GMT -5. The time now is 09:14 PM.