Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> New version of gcc, g++, gdb, ...
albo
 Posted: Sep 10 2014, 10:43 AM
Quote Post


SLF Newbie


Group: Members
Posts: 7
Member No.: 3009
Joined: 7-March 14









Hello,

if a newer version of gcc, g++, ... is needed on your scientific linux 5/6 (Centos 5/6) installation, install the following devtoolset.

http://linux.web.cern.ch/linux/devtoolset/

Follow the installation instruction described at the end of the page in the link above.



If you dont want to enable the whole toolset in the bash but use it in Eclipse or NetBeans or so, the single programms of the devtoolset can be found under the following path:

e.g.:
/opt/centos/devtoolset-1.1/root/usr/bin/



If you want to set the gcc, g++, gdb,... of the devtoolset as default, proceed with the following steps for every desired programm.

e.g.:
mv /usr/bin/gcc /usr/bin/gcc.bckup
ln -s /opt/centos/devtoolset-1.1/root/usr/bin/gcc /usr/bin/gcc

Greetings
albo
PM
^
helikaon
 Posted: Sep 10 2014, 01:58 PM
Quote Post


SLF Administrator
*******

Group: Admins
Posts: 837
Member No.: 4
Joined: 8-April 11









QUOTE (albo @ Sep 10 2014, 10:43 AM)
Hello,

if a newer version of gcc, g++, ... is needed on your scientific linux 5/6 (Centos 5/6) installation, install the following devtoolset.

http://linux.web.cern.ch/linux/devtoolset/

Follow the installation instruction described at the end of the page in the link above.
...
....
Greetings
albo


Thanks for sharing info :]
cheers,

--------------------
PMEmail Poster
^
patriehecky
 Posted: Sep 10 2014, 02:23 PM
Quote Post


SL Developer
***

Group: Moderators
Posts: 94
Member No.: 837
Joined: 14-September 11









QUOTE (helikaon @ Sep 10 2014, 07:58 AM)
QUOTE (albo @ Sep 10 2014, 10:43 AM)
Hello,

if a newer version of gcc, g++, ... is needed on your scientific linux 5/6 (Centos 5/6) installation, install the following devtoolset.

http://linux.web.cern.ch/linux/devtoolset/

Follow the installation instruction described at the end of the page in the link above.
...
....
Greetings
albo


Thanks for sharing info :]
cheers,


I'd suggest the SL maintained version :

http://ftp.scientificlinux.org/linux/scientific/6x/external_products/softwarecollections/yum-conf-softwarecollections-1.0-1.el6.noarch.rpm

http://ftp.scientificlinux.org/linux/scientific/6x/external_products/devtoolset/yum-conf-devtoolset-1.0-1.el6.noarch.rpm

This post has been edited by patriehecky: Sep 10 2014, 02:24 PM

--------------------
Pat Riehecky

Scientific Linux developer
http://www.scientificlinux.org/
The best way to get my attention is over the official lists.
PM
^
helikaon
 Posted: Sep 10 2014, 07:19 PM
Quote Post


SLF Administrator
*******

Group: Admins
Posts: 837
Member No.: 4
Joined: 8-April 11










--------------------
PMEmail Poster
^
albo
 Posted: Sep 11 2014, 04:02 PM
Quote Post


SLF Newbie


Group: Members
Posts: 7
Member No.: 3009
Joined: 7-March 14









and here additional repos of devtoolsets for CentOS user.

http://people.centos.org/tru/

greetings
albo
PM
^
albo
 Posted: Jan 4 2015, 05:20 PM
Quote Post


SLF Newbie


Group: Members
Posts: 7
Member No.: 3009
Joined: 7-March 14









Hi all,

there is a new devtoolset available for SL.

The toolset contains the gcc/g++ in version 4.9.1
http://linux.web.cern.ch/linux/scl/

greetings

albo
PM
^
patriehecky
 Posted: Jan 5 2015, 06:26 PM
Quote Post


SL Developer
***

Group: Moderators
Posts: 94
Member No.: 837
Joined: 14-September 11









QUOTE (albo @ Jan 4 2015, 11:20 AM)
Hi all,

there is a new devtoolset available for SL.

The toolset contains the gcc/g++ in version 4.9.1
http://linux.web.cern.ch/linux/scl/

greetings

albo


Correct links:

http://ftp.scientificlinux.org/linux/scientific/6x/external_products/softwarecollections/
http://ftp.scientificlinux.org/linux/scientific/7x/external_products/softwarecollections/

--------------------
Pat Riehecky

Scientific Linux developer
http://www.scientificlinux.org/
The best way to get my attention is over the official lists.
PM
^
joka
 Posted: Jan 7 2015, 11:33 PM
Quote Post


SLF Geek
****

Group: Members
Posts: 172
Member No.: 107
Joined: 28-April 11









Upstream packages (as software collections) are available from https://www.softwarecollections.org/en/scls/

The advantage of the SL collections is that they are provided by one big yum repo (instead of one repo per collection). I was not aware of it before. Thanks for the hint.
PM
^
lucianocastori
 Posted: Feb 16 2018, 12:29 PM
Quote Post


SLF Newbie


Group: Members
Posts: 1
Member No.: 3985
Joined: 16-February 18









Good morning,

could anyone please help me understand why after opening codeblock on Linux scientific and having chosen the console, during the compiling it keeps on saying that it can't find g++ and it doesn't run the compiling phase? We are pretty sure we inserted C as language and Gcc as compiler in the initialization phase. Thanks for your help!


---------------Build: DEbug in <File_name> ( compiler: GNU GCC Compiler) ----------------------

g++ -o bin/Debug/<file_name> obj/Debug/main.o

/bin/sh: g++: command not found

Process terminated with status 127 ( 0 minute(s) , 0 second(s)
0 error(s), 0 warning(s) ( 0 minute(s) , 0 second(s)

PM
^
inittux
 Posted: Feb 17 2018, 09:10 AM
Quote Post


SLF Geek
****

Group: Members
Posts: 312
Member No.: 953
Joined: 20-October 11









Did you install the package gcc-c++ ?

QUOTE (lucianocastori @ Feb 16 2018, 01:29 PM)
Good morning,

could anyone please help me understand why after opening codeblock on Linux scientific and having chosen the console, during the compiling it keeps on saying that it can't find g++ and it doesn't run the compiling phase? We are pretty sure we inserted C as language and Gcc as compiler in the initialization phase. Thanks for your help!


---------------Build: DEbug in <File_name> ( compiler: GNU GCC Compiler) ----------------------

g++ -o bin/Debug/<file_name> obj/Debug/main.o

/bin/sh: g++: command not found

Process terminated with status 127 ( 0 minute(s) , 0 second(s)
0 error(s), 0 warning(s) ( 0 minute(s) , 0 second(s)

PM
^
lori
 Posted: Feb 22 2018, 01:37 AM
Quote Post


SLF Newbie


Group: Members
Posts: 3
Member No.: 3989
Joined: 22-February 18









Hi,

I'm trying to update my gcc to use a more recent version of gfortran. The gcc appears to have updated, but not gfortran.

$ gcc --version
gcc (GCC) 7.3.0
Copyright © 2017 Free Software Foundation, Inc.

$ gfortran --version
GNU Fortran (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
Copyright © 2015 Free Software Foundation, Inc.

How do I get the gfortran to update?
PM
^
lori
 Posted: Feb 28 2018, 06:07 PM
Quote Post


SLF Newbie


Group: Members
Posts: 3
Member No.: 3989
Joined: 22-February 18









Hello,

This issue was resolved.

QUOTE (lori @ Feb 22 2018, 01:37 AM)
Hi,

I'm trying to update my gcc to use a more recent version of gfortran.  The gcc appears to have updated, but not gfortran.

$ gcc --version
gcc (GCC) 7.3.0
Copyright © 2017 Free Software Foundation, Inc.

$ gfortran --version
GNU Fortran (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
Copyright © 2015 Free Software Foundation, Inc.

How do I get the gfortran to update?

PM
^
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll