LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-10-2013, 11:14 AM   #1
SamiBH
LQ Newbie
 
Registered: Apr 2013
Posts: 1

Rep: Reputation: Disabled
gcc update question for CentOS 5.7


Hello,

I know very little about linux.

I need to update gcc to at least 4.4 for xbt install

when I do

Code:
yum install boost-devel gcc-c++ mysql-devel subversion
I get Finished

Code:
Setting up Install Process Package boost-devel-1.33.1-16.el5_9.i386 already installed and latest version 
Package gcc-c++-4.1.2-54.el5.i386 already installed and latest version 
No package mysql-devel available.
.............

also tried:

Code:
yum install gcc44-gfortran
yum install gcc44-c++
export CC=/usr/bin/gcc44 
export CXX=/usr/bin/g++44
but still gcc version 4.1.2

system:

CentOS release 5.7 (Final)

Thank you,
 
Old 04-10-2013, 12:41 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ.

You can have as many versions of gcc / gcc-c++ as you want,
installed at the same time : They all have unique file names.

# yum install gcc-c++ gcc44-c++ compat-gcc-34-c++
.. provide /usr/bin/ g++ g++34 g++44 gcc gcc34 gcc44

The "gcc44 / gcc44-c++" is not an update. Is one of more extra compilers.

Using, examples : $ gcc44 <input file>
$ export CC=gcc44 CXX=g++44 && ./configure

-
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc install question for CentOS 5.6 KingSalibah Linux - Newbie 9 11-21-2011 04:51 PM
CentOS webserver update question Maverick918 Linux - Security 1 03-23-2011 04:14 PM
gcc update question pythonsyntax Linux - Newbie 1 02-23-2010 09:45 AM
CentOS - gcc path question rheng Linux - Newbie 3 07-29-2008 02:13 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 03:36 AM


All times are GMT -5. The time now is 08:21 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration