gcc 4.7 or Red Hat Developer Toolset equivalent for Centos?

Issues related to software problems.
marcin
Posts: 2
Joined: 2013/02/07 16:44:12
Contact:

Re: gcc 4.7 or Red Hat Developer Toolset equivalent for Centos?

Post by marcin » 2013/10/17 16:28:03

I see one strange thing. When I compile fortran program with STOP on CentOS 5 with gfortran 4.7.2 (devtoolset-1.1) and run it, it prints STOP:

PROGRAM ABC
STOP
END

./a.out
STOP

Other gfortran builds don't do this. Could someone confirm it? I wonder if it's just me and my computer.

Marcin

psoufleris
Posts: 1
Joined: 2013/11/07 19:36:14

Re: gcc 4.7 or Red Hat Developer Toolset equivalent for Cent

Post by psoufleris » 2013/11/07 19:40:51

We are running CentOS 6.3 and needed to upgrade gcc from 4.4.7 to 4.7 or higher. We following the post above to install the entire test package, and everything appears to have installed correctly. However, when we issue gcc -v it still shows the older version 4.4.7. How do we get gcc to upgrade from here?

Many thanks in advance

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

Re: gcc 4.7 or Red Hat Developer Toolset equivalent for Cent

Post by TrevorH » 2013/11/07 20:23:50

The devtoolset copy does not replace the system gcc, it installs in parallel. The default compiler stays the system one. You need to read the doc for the packages you just installed like http://linux.web.cern.ch/linux/devtools ... -en-US.pdf
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

raoul_mcfadden
Posts: 1
Joined: 2013/12/02 18:46:26

Re: gcc 4.7 or Red Hat Developer Toolset equivalent for Cent

Post by raoul_mcfadden » 2013/12/02 18:49:41

Greetings, thanks very much for this. I installed the rpm, did the scl enable, and gcc -v shows me the new version.
I don't seem to have a new version of libstdc++, though, some packages I'm using require 3.4.15 of GLIBCXX, and though the libstdc++-devel came with this, I don't see a new version of the main one installed. Any path there for this distribution? I can build gcc and get a new version, but that's more difficult for me maintain than this distribution, so I'd rather stick with the rpm if possible.

Thanks!

RioHermawan
Posts: 1
Joined: 2014/01/09 11:07:53

Re: gcc 4.7 or Red Hat Developer Toolset equivalent for Cent

Post by RioHermawan » 2014/01/09 11:28:17

My vps runs on Centos 5.10, gcc not installed yet. Then I though I'd devtoolset-1.1 installed successfully on my vps with these commands (via Putty) :

wget http://people.centos.org/tru/devtools-1 ... s-1.1.repo -O /etc/yum.repos.d/devtools-1.1.repo
yum install devtoolset-1.1
scl enable devtoolset-1.1 bash
gcc -v

but, I'd problem with the last command. It always returned -bash: gcc: command not found. Anybody can help ? Thanks in advance.

Post Reply