[help] GCC outdated

iCORE

New member
Messages
393
Points
0
Location
Halcyon Ragnarok
Github
Naori
Emulator
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.

 
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.

 
Last edited by a moderator:
Back
Top