iCORE 33 Posted September 25, 2016 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. Quote Share this post Link to post Share on other sites
0 Kubix 83 Posted September 25, 2016 update your OS? Quote Share this post Link to post Share on other sites
0 ecrow 3 Posted September 26, 2016 (edited) 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 September 26, 2016 by ecrow Quote Share this post Link to post Share on other sites
0 Mikegyver 9 Posted February 25, 2017 The reason why i hate using centos.. not up to date compares to debian especially ubuntu.. Quote Share this post Link to post Share on other sites
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