Google Answers Logo
View Question
 
Q: gcc in RedHat 8.0 ( Answered 5 out of 5 stars,   2 Comments )
Question  
Subject: gcc in RedHat 8.0
Category: Computers > Programming
Asked by: ga1000-ga
List Price: $3.00
Posted: 18 Mar 2003 20:24 PST
Expires: 17 Apr 2003 21:24 PDT
Question ID: 178026
My RedHat 8.0 does not recognize the command gcc. Old makefile no longer works.

Is it changed to a new name? If so, please let me know.
Answer  
Subject: Re: gcc in RedHat 8.0
Answered By: eiffel-ga on 19 Mar 2003 04:23 PST
Rated:5 out of 5 stars
 
Hi ga1000,

est assured that Red Hat Linux 8.0 continues to support gcc under that
name.

To get gcc working, first type the following command:

   which gcc

If that returns a pathname, the problem is something other than a
missing gcc. Assuming that 'which gcc' does not produce any output,
type the following command:

   locate gcc | grep /gcc$

This will tell you if gcc is located on your disk. (If you get a
"database out of date" message, run "updatedb" then rerun the "locate"
command above.)

If gcc is on your disk, you must make sure it is on the shell's search
path. Type

   echo $PATH

to see the current search path. Assuming the gcc directory is not
present, you can add the following command to the end of the
.bash_profile file in your login directory:

   export PATH=$PATH:dir

where dir is replaced by the directory in which gcc is located.

If the 'locate' command did not find a copy of gcc, you can install
it. As the root user, type

   redhat-config-packages &

Scroll down to "Development Tools". Click the "Development Tools"
checkbox and click "Update". You will need to have your RedHat CD-ROMs
available.

Let me know if this doesn't make sense, or doesn't work out.


Additional links:

RedHat Linux Home Page
http://www.redhat.com/


Google search strategy:

gcc redhat OR "red hat" 8
://www.google.com/search?q=gcc%20redhat%20OR%20%22red%20hat%22%208


Regards,
eiffel-ga

Clarification of Answer by eiffel-ga on 19 Mar 2003 11:44 PST
The first paragraph above should read "Rest assured" rather than "est
assured". My apologies for this typo.

Request for Answer Clarification by ga1000-ga on 19 Mar 2003 14:34 PST
(a) "which gcc" produces "no gcc in...."
(b) "locate gcc | grep /gcc$" produces "could not open database...no
such file"

The RedHat 8.0 is installed fresh with the first two disks. I noticed
that there are three disks available for installation. Wonder whether
there are more steps in order to install the gcc file to the hard
drive.

Request for Answer Clarification by ga1000-ga on 19 Mar 2003 18:11 PST
To eiffel-ga

I found the gcc package on disk3 and unpacked it.

By using "which gcc", I found it in /sbin. So problem is solved.

Thank you.

Clarification of Answer by eiffel-ga on 19 Mar 2003 23:52 PST
I'm glad you've got gcc working again, ga1000. Happy compiling!
ga1000-ga rated this answer:5 out of 5 stars

Comments  
Subject: Re: gcc in RedHat 8.0
From: denco-ga on 18 Mar 2003 21:45 PST
 
gcc-3.2 should come with RedHat 8.0 ...

Obvious (?) questions...

- Does 'which gcc' give you a response (such as /usr/bin/gcc)?
- If not, did you install the gcc package?

You might have to make sure your path set to where gcc lives,
or install (rpm -q gcc) the gcc package.

There does appear to be some compatability issues with gcc-3.2
and makefiles that used to work under prior versions of gcc:

http://www.isi.edu/nsnam/ns/ns-problems.html

"Problem: ns does not compile when using gcc-3.2/Redhat 8.0.

Solution: ns has been patched to compile using GCC-3.2/Redhat8.0
on October 10 2002."
Subject: Re: gcc in RedHat 8.0
From: ga1000-ga on 18 Mar 2003 22:59 PST
 
I used gcc in an arbitry directory. In RedHat 7.1, that was not a
problem, gcc could be called in any directory.

The error message is such that gcc is not recognized as a command.

I did not unpack to get the gcc. 7.1 seems to have gcc unpacked
already.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy