UPDATE Gcc

General support questions
Post Reply
silvermtl
Posts: 3
Joined: 2022/05/28 23:27:43

UPDATE Gcc

Post by silvermtl » 2022/05/28 23:31:50

Hi ,
Please i need to update compiler GCC to 4.9 or more , i try so many thing and nothing work

many thanks for helping me with this :?: :?: :?: :?: :?:

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: UPDATE Gcc

Post by TrevorH » 2022/05/28 23:59:49

yum install centos-release-scl
yum list \*gcc\*


Look at the devtoolset-XX packages, pick the version of gcc that you want - e.g. 11 - then yum install devtoolset-11

Please not that SCL's require specific action taken to invoke them, they do not replace the system tools, you must run a special SCL shell to use them. See man scl
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

silvermtl
Posts: 3
Joined: 2022/05/28 23:27:43

Re: UPDATE Gcc

Post by silvermtl » 2022/05/29 11:12:12

thanks fyou for your help

after installing

-->> sudo yum install rh-python36

and using python 3.6 scl command :

-->> scl enable rh-python36 -- bash

i have this error :
Unable to open /etc/scl/conf/rh-python36!

i think something wrong with the scl path , please do you know how to fix this ?

User avatar
jlehtone
Posts: 4531
Joined: 2007/12/11 08:17:33
Location: Finland

Re: UPDATE Gcc

Post by jlehtone » 2022/05/29 11:55:43

What do you have in /etc/scl/conf/?

The /etc/scl/conf/rh-python36 belongs to package rh-python36-runtime and that should install as dependency to rh-python36.

silvermtl
Posts: 3
Joined: 2022/05/28 23:27:43

Re: UPDATE Gcc

Post by silvermtl » 2022/05/29 12:42:11

only one file :

devtoolset-9

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: UPDATE Gcc

Post by TrevorH » 2022/05/29 13:15:15

So why are you attempting to invoke an SCL that you don't have installed? You have devtoolset-9 not rh-python36 so you should change your command accordingly.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4531
Joined: 2007/12/11 08:17:33
Location: Finland

Re: UPDATE Gcc

Post by jlehtone » 2022/05/29 14:31:43

So, two issues:

A) Why attempt to install/use Python 3.6 when you initially did ask for GCC? (Besides, base repo does now have python3, no SCL required for that.)

B) If 'rh-python36' was installed, then what went wrong in that?

Post Reply