LinuxQuestions.org
Help answer threads with 0 replies.
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 02-13-2002, 06:59 PM   #1
icyfire
Member
 
Registered: Feb 2002
Location: Bay Area, California
Distribution: Ubuntu
Posts: 110

Rep: Reputation: 15
Unhappy 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.
 
Old 02-13-2002, 08:16 PM   #2
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
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...
 
Old 02-13-2002, 11:25 PM   #3
icyfire
Member
 
Registered: Feb 2002
Location: Bay Area, California
Distribution: Ubuntu
Posts: 110

Original Poster
Rep: Reputation: 15
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.
 
Old 02-14-2002, 08:10 AM   #4
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
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.
 
Old 02-19-2002, 01:16 PM   #5
icyfire
Member
 
Registered: Feb 2002
Location: Bay Area, California
Distribution: Ubuntu
Posts: 110

Original Poster
Rep: Reputation: 15
Angry 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. ive tried so hard!! maybe im still just stuck in the newbie world...
 
Old 02-19-2002, 01:28 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
kernel source is on the 2nd cd

/mnt/cdrom/Mandrake/RPMS2/kernel-source-2.4.8-26mdk.i586.rpm
 
Old 02-19-2002, 02:02 PM   #7
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
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.
 
Old 02-20-2002, 07:13 PM   #8
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
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
 
Old 02-20-2002, 07:37 PM   #9
icyfire
Member
 
Registered: Feb 2002
Location: Bay Area, California
Distribution: Ubuntu
Posts: 110

Original Poster
Rep: Reputation: 15
Talking 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!

 
  


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
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
Building compiler from source corbis_demon Programming 2 06-08-2005 08:34 AM
how do I compile programs from source with a secondary compiler? jarobman Programming 3 02-16-2005 05:57 PM
Compiler conundrum: Which came first, a compiler, or it's source code? fr0zen Programming 21 01-29-2004 04:31 AM
Error - no gcc3 or cc compiler when installing source code bshelton Linux - General 1 09-16-2003 02:26 PM

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

All times are GMT -5. The time now is 01:28 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