Activate GCC4.7

General support questions
Post Reply
mohmsslk
Posts: 4
Joined: 2017/06/09 15:47:19

Activate GCC4.7

Post by mohmsslk » 2017/06/09 15:53:43

Hello,

I have installed GCC 4.7 but when I run gcc --version I get gcc 4.4, how activate 4.7 to use it?
I have CentOS 6.8.

Thank you

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

Re: Activate GCC4.7

Post by TrevorH » 2017/06/09 18:28:21

If that was from an SCL like devtools then you need to use the scl enable ... command
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

mohmsslk
Posts: 4
Joined: 2017/06/09 15:47:19

New GCC 4.8.5 problem

Post by mohmsslk » 2017/06/12 17:51:21

hello,

I have installed new gcc by compiling on my own, the new gcc make problem and I cant access to my PC.
the source http://jotmynotes.blogspot.com.es/2016/ ... os-67.html and see the last part(Check rpm installed) to understand.
Any idea to solve that?

Thank you

mohmsslk
Posts: 4
Joined: 2017/06/09 15:47:19

Re: Activate GCC4.7

Post by mohmsslk » 2017/06/13 12:18:57

Thank you very much it works well, but now I need version 4.8.5.

User avatar
remirepo
Posts: 447
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: Activate GCC4.7

Post by remirepo » 2017/06/13 12:32:58

Base system : gcc 4.4.7
devtoolset-3: gcc 4.9.2 (EOL since Oct 2016)
devtoolset-4: gcc 5.2.1
devtoolset-6: gcc 6.2.1
Remi's Repository - Forum - Blog

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: Activate GCC4.7

Post by chemal » 2017/06/13 17:29:37

Devtoolset-2 includes gcc 4.8.2 and is still available. It was good enough to build RHEL 7.0, so it should be good enough for you, too. Gcc 4.8.5 isn't available for CentOS 6. But it's available as the system compiler in CentOS 7.3.

mohmsslk
Posts: 4
Joined: 2017/06/09 15:47:19

Re: Activate GCC4.7

Post by mohmsslk » 2017/06/14 14:05:01

thank you, now I have new problem please see viewtopic.php?f=13&t=62900&p=265164#p265164

stevemowbray
Posts: 519
Joined: 2012/06/26 14:20:47

Re: Activate GCC4.7

Post by stevemowbray » 2017/06/14 15:06:12

Don't install from source. Use one of the devtoolset versions.

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

Re: Activate GCC4.7

Post by TrevorH » 2017/06/14 15:45:17

That separate thread is now merged into this one since it's a continuation of the same thing. And, no, we don't support installing anything from source, let alone something like gcc. If it's broken your system either undo what you did or reinstall.
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

Post Reply