LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to install gcc compiler (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-gcc-compiler-889089/)

mallesh 06-29-2011 10:09 PM

how to install gcc compiler
 
I have recentally installed red hat linux5.0 in my sys. I wrote a simple 'C' language program in vi editor.I faced one problem "Bash : cc command not found". plz help me.

routers 06-30-2011 01:42 AM

put back the linux installer, find the filename call gcc* inside the installer and install it

go to folder which contain gcc and execute as following

rpm -ivh gcc*

knudfl 06-30-2011 10:15 AM

Duplicate of http://www.linuxquestions.org/questi...hi-sir-887186/
And :
http://www.linuxquestions.org/questi...x5-0-a-887315/

The command : cat /etc/redhat-release
.. will show the name of your OS : Probably 'Redhat Enterprise EL 5.x'.
Redhat 5.0 is something else.

The command : # 'yum install gcc-c++' will install a working "/usr/bin/gcc".
And 'cc' is a link to /usr/bin/gcc .

..

colucix 06-30-2011 10:22 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Discussion continues in your first thread: http://www.linuxquestions.org/questi...hi-sir-887186/


All times are GMT -5. The time now is 05:30 AM.