LinuxQuestions.org
Visit Jeremy's Blog.
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 10-23-2003, 10:22 PM   #1
Laptop2250
Member
 
Registered: Oct 2003
Posts: 131

Rep: Reputation: 15
Exclamation come on i want to use & understand linux already


I am trying to understand linux instead of just installing random Development tools and not knowing what they do. I did not install anything under the "Development" tab when I installed RedHat 9.0 because I wanted to make sure if a friend/or I later had a problem I could know what was missing and how to fix it. So I started basically from scratch with no Development tools and therefore I have errors installing things. I tried installing checkinstall (knowing there would be errors) it said I needed GCC. I downloaded GCC but I am stumped at this one. Below are the following error messages of my GCC installation. I want to know what I need to install GCC successfully. Also any websites that I should keep bookmarked in case i ever see an error saying I am missing a lib/compiler or anything else.

[understandlinux@localhost gcc-3.3.2]$ ./configure
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /home/understandlinux/Source/gcc-3.3.2 using "mt-frag"
./configure: line 8: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.


 
Old 10-23-2003, 10:40 PM   #2
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
To get around the current error you could do a find -name gcc from the "/" directory and then set an environment var to match the path returned, however I suspect this is just the tip of the proverbial iceberg and instead you should go to your menu and the software installer application and install all the development tools, this will eliminate the "trickle of errors" that is most likely coming if you elect to install each component one by one (why via download and not cd?), to me, the only rationale for that would be extremely limited disk space.
 
Old 10-23-2003, 11:18 PM   #3
misophist
Member
 
Registered: Aug 2003
Location: here
Distribution: suse 8.2
Posts: 169

Rep: Reputation: 30
For your long range goals, find a users group and join. Read. Read. Read. There are how-tos and docs and readmes hiddin in your installation. Get familiar with man and info. If your circumstances allow it, a Unix course at a local city college is a good idea. Smart friends are good but can never know everything.
 
Old 10-24-2003, 03:37 AM   #4
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
If you need a c compiler (e.g. gcc) then downloading the source code for gcc will not help. What will you compile it with! This is your problem. You need the compiler in binary form before you can do anything. Get this from your install cds if you can.
 
Old 10-27-2003, 09:46 PM   #5
Laptop2250
Member
 
Registered: Oct 2003
Posts: 131

Original Poster
Rep: Reputation: 15
Question

if i downloaded the rpm, not the srpm, would that work? and do you mean i need a binary compiler to compile gcc? after i compile a binary gcc with a binary compiler could i then compile a gcc rpm from the gcc binary code?

i also heard that some programs work with only certain versions of gcc (lets say, im not sure on the versions) work with 1.0 but not 2.0 and some work with 2.0 but not 1.0, what should i compile then?

evolution of linux users ->
lol =)
 
Old 10-27-2003, 09:59 PM   #6
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
Please, save yourself a lot of time, use redhat's software installer to install the *entire* development package, the rpm's are on the cd's.

To answer the question (rpm vs srpm)
the rpm should install a binary which does not need to be compiled. FYI: you don't need to compile gcc for redhat, they've already done it for you, it's on the cd's, you just need to install the development packages.

the gcc version incompatibility thing you're referring to could be talking about kernel modules compiled with a different version of gcc than the kernel was compiled (by redhat) with, as for normal "user" type applications, I would think apps compiled with older versions of gcc would work w/newer ones, but not vice versa.
 
Old 10-28-2003, 02:52 PM   #7
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
Binary means compiled code, that the computer can execute. If you downloaded a compiler as source, you'd need to compile it before you could use it, but without a compiler in binary you couldn't do that. You will find that and everything else you should need on the install discs, as the other poster said.
 
Old 10-28-2003, 03:23 PM   #8
Ginux
Member
 
Registered: Oct 2003
Location: Montpellier, Milano
Distribution: RedHat
Posts: 81

Rep: Reputation: 15
And to continue on what Misophist sayd,
Don't be afraid to make mistakes.
Ask the right questions. (I still remmember the first time I installed linux '97-'98 RH5.something, I installed it 3 times just because I didn't know how to launch X , thinking I had made a mistake or something )

Ginux
 
Old 10-28-2003, 04:34 PM   #9
Laptop2250
Member
 
Registered: Oct 2003
Posts: 131

Original Poster
Rep: Reputation: 15
yeah i installed linux 9.0 at least 5times because i wanted to learn and try out things.. but i still dont get it... if i want to install a gcc compiler what do i download to make that work?
 
Old 10-28-2003, 04:51 PM   #10
Ginux
Member
 
Registered: Oct 2003
Location: Montpellier, Milano
Distribution: RedHat
Posts: 81

Rep: Reputation: 15
One sure way is to reinstall... yep
But this time choose upgrade and add the pakages that you need... I learned this trick once, when I needed some packages and I had a hell of time finding it's dependences.
add the development section and any other section that you may need....

OR {drum roll}

From the RedHat *start* menu --> System Settings --> Add/Remove Applications would do nicely as well

Ginux

P.s. Sorry for calling it *start* menu, but I wanted to be clear to what I was trying to explain -=sorry=-

Reading your question again, I may have understood it wrong the first time..
If you what to upgrade &/or learn about gcc and other stuff try this link
http://gcc.gnu.org/

Hope this helps

Last edited by Ginux; 10-28-2003 at 04:55 PM.
 
Old 10-29-2003, 02:06 PM   #11
Laptop2250
Member
 
Registered: Oct 2003
Posts: 131

Original Poster
Rep: Reputation: 15
i may have updated 2 soon.. 1min

Last edited by Laptop2250; 10-29-2003 at 02:07 PM.
 
Old 10-29-2003, 02:16 PM   #12
Laptop2250
Member
 
Registered: Oct 2003
Posts: 131

Original Poster
Rep: Reputation: 15
Talking

you did misread it the first time Ginux, thanks for the link that is it =) yay

I finally get to install

thanks again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
I want Linux but at the same time I don't. Just read and you'll understand. simeandrews Linux - Newbie 27 12-18-2004 08:00 AM
[SOLVED] I'm happy but I still don't understand linux filosophem Linux - General 5 11-27-2004 11:29 AM
can't understand linux networking paschim Linux - Networking 2 04-06-2004 01:02 AM
my linux box doesn't understand... thepeeratt Linux - Security 5 11-21-2003 02:57 PM
Trying to understand linux quintino Linux - Newbie 3 02-02-2002 04:35 PM


All times are GMT -5. The time now is 07:50 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration