LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-08-2014, 05:51 PM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

← #15

The gcc packages from ftp://mirror.switch.ch/pool/4/mirror...ts/devtoolset/
installs to /opt/centos/devtoolset-1.1/root/usr/bin/{gcc g++}


#14 :
Quote:
gcc -v
For the newly installed "gcc47 and g++47", please do :
$ which gcc47
$ which g++47
$ gcc47 --version
$ g++47 --version
( And / or $ gcc47 -v && g++47 -v ).

The "export CC=gcc47 CXX=g++47" is used when you are compiling.
Like $ export CC=gcc47 CXX=g++47 && ./configure

-

Last edited by knudfl; 11-08-2014 at 05:55 PM.
 
Old 11-08-2014, 07:31 PM   #17
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:

The "export CC=gcc47 CXX=g++47" is used when you are compiling.
Like $ export CC=gcc47 CXX=g++47 && ./configure
true you can export
but if you are going to use the CERN build
then why not use the already installed script
Code:
enable devtoolset-1.1 bash
http://linux.web.cern.ch/linux/devtoolset/
 
1 members found this post helpful.
Old 11-09-2014, 03:06 AM   #18
neil117
LQ Newbie
 
Registered: Nov 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
o.k that what worked for me:

cd /etc/yum.repos.d
wget http://people.centos.org/tru/devtool...tools-1.1.repo
yum --enablerepo=testing-1.1-devtools-6 install devtoolset-1.1-gcc devtoolset-1.1-gcc-c++

vim /etc/yum.repos.d/devtools-1.1.repo
paste all of this:
[DevToolset-2]
name=RedHat DevToolset v2 $releasever - $basearch
baseurl=http://puias.princeton.edu/data/puias/DevToolset/$releasever/$basearch/
enabled=1
gpgcheck=0

yum install devtoolset-2-gcc-4.8.1 devtoolset-2-gcc-c++-4.8.1
/opt/rh/devtoolset-2/root/usr/bin/gcc --version
ln -s /opt/rh/devtoolset-2/root/usr/bin/* /usr/local/bin/
hash -r
gcc --version


thanks for the help every one
 
  


Reply

Tags
devtoolset, gcc47-centos6


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install GCC in Red Hat Enterprise? newbie2011 Red Hat 9 07-05-2011 12:45 AM
HowTo Install GCC on Red Hat Enterprise 3 ? skate Red Hat 4 02-27-2006 10:11 PM
install new gcc v3.4.5 over gcc v3.2.2 on red hat 9 mlaich Linux - Newbie 2 01-01-2006 08:52 PM
How to install GNU g++ and gcc compilers on Red Hat 9.0? naveenkoneru Linux - Newbie 1 07-20-2004 06:11 AM
How do i install gcc on red hat 9 NRHBasher Linux - Newbie 5 03-11-2004 09:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration