|
|
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. |
|
Subject:
Re: gcc in RedHat 8.0
Answered By: eiffel-ga on 19 Mar 2003 04:23 PST Rated: |
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 | |
| |
| |
| |
|
ga1000-ga rated this answer: |
|
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. |
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 Home - Answers FAQ - Terms of Service - Privacy Policy |