Jump to content
  • 0
Sign in to follow this  
iCORE

[help] GCC outdated

Question

Hi i would like to ask on how to update GCC on CentOS 5.11 

 

my current ver. of GCC is 4.1.5 and when i run yum upgrade gcc it says that its already up to date.

 

any guides on how to install the latest package?

 

thankyou in advance.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Download GCC from GNU 

 

Extract it.

 

Append the extracted path to the new gcc's bin folder to the $PATH variable. It should override your old binary if it's added later in the variable.

Like...

export PATH=$PATH:/my/path/to/the/gcc/bin/I/just/extracted
setenv PATH $PATH:/my/path/to/the/gcc/bin/I/just/extracted # depends on used shell.

OR

 

Don't do the $PATH update, and copy over the old binary (usually in /usr/bin/gcc). Use "which gcc" to find the location. 

Creating a symlink can be helpful so you can swap between binaries if you need to.

 

Ick, never mind, looks like they don't provide the binaries themselves. you'll need to build it yourself. I'm positive there are guilds online to do that or a README file included with the package to walk you through.

Edited by ecrow

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.