LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   cc is not working after gcc44 has been installed (http://www.linuxquestions.org/questions/linux-software-2/cc-is-not-working-after-gcc44-has-been-installed-941978/)

vjramana 04-26-2012 07:43 PM

cc is not working after gcc44 has been installed
 
Greetings!

I am using CENTOS 5.7 and I have installed gcc44 and linked as gcc. Now when I try to installed another software, it require cc and the it says could not find cc command.

I have posted on how to go about in installing gcc44 instead of gcc-4.1.2 in this forum and the related address is given below.

http://www.linuxquestions.org/questi...-3-1-a-938424/


How I can make the cc to work?

towheedm 04-27-2012 09:03 PM

You need to create a symbolic link to gcc44:

Code:

ln -s /usr/bin/gcc44 /usr/bin/cc
Hope it helps.

Ian John Locke II 04-27-2012 09:05 PM

Code:

/usr/bin/cc
should be a symbolic link to
Code:

/etc/alternatives/cc
which should be a symbolic link to
Code:

/usr/bin/gcc
You should check the first two parts to make sure they point to where they're supposed to.


All times are GMT -5. The time now is 06:48 AM.