About Linux FAQ

Browse More FAQs:

Where is my Linux GNU C or gcc compiler installed?

Posted by Vivek Gite [Last updated: November 20, 2006]

Q. Where is my GNU C compiler? Where does the GNU C (gcc) compiler reside in the CentOS Linux installation? How do I install if it is not installed by default?

A. Use which command to locate c compiler binary called gcc. Usually it is installed in /usr/bin directory.

Type following command to see Linux C Compiler location:

$ which gccOutput:

/usr/bin/gcc

Display gcc version:

$ gcc -vOutput:

Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)

Use up2date or yum or apt-get command to install gcc and required libs:

If you are using Red Hat Enterprise Linux, type the command:

# up2date gcc

If you are using CentOS/Fedora Core Linux, type the command:

# yum install gcc

If you are using Debian /Ubuntu Linux , type the command:

$ sudo apt-get install gccOR# apt-get install gcc

E-mail this to a friend      Printable version

Related Other Helpful FAQs:

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.