LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-12-2012, 10:46 AM   #1
kareempj
LQ Newbie
 
Registered: Mar 2012
Posts: 18

Rep: Reputation: Disabled
gcc44


I recently upgraded my system using yum install gcc44 however the old version of gcc is still active on my system. How do I enable the new version of gcc to be the default compiler?
 
Old 04-12-2012, 11:05 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
First : gcc44 is not an update for "gcc 4.1.2".

You can have as many versions of gcc as you want,
installed at the same time :
Default el5 compilers "gcc-c++" "gcc44-c++" "compat-gcc-34-c++"

# yum install gcc44-c++
... And you have a functional /usr/bin/gcc44


Using the extra compiler, example :
export CC=gcc44 CXX=g++44 && <other-command>.

.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 04:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration