LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2014, 12:13 AM   #1
arcolombo698
Member
 
Registered: Nov 2013
Posts: 31

Rep: Reputation: Disabled
Installing C++ on a CentOS running Linux


Hello.

I need to install C++ on a CentOS system that is running linux. or I need to check if it has c++ installed... advice?
 
Old 01-04-2014, 12:29 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Install the g++ compiler. If you do:

Code:
yum groupinstall "development tools"
That should give you gcc, g++, and the basic include files and libraries you need to compile code.
 
Old 01-04-2014, 12:30 AM   #3
arcolombo698
Member
 
Registered: Nov 2013
Posts: 31

Original Poster
Rep: Reputation: Disabled
C++

will this also give me c++? or just compiling tools?

I am also install on a HPCC server... does this matter?
 
Old 01-04-2014, 12:31 AM   #4
arcolombo698
Member
 
Registered: Nov 2013
Posts: 31

Original Poster
Rep: Reputation: Disabled
Errs

[acolombo@hpc-login2 ~]$ yum groupinstall "development tools"
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
You need to be root to perform this command.
 
Old 01-04-2014, 08:02 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Installing the c++ compiler :

1) $ su <enter-root-password>
2) # yum install gcc-c++

If you also want all the other "Development tools" :
a) $ yum grouplist
.. to check how to spell "Development tools".
I.e. it is not "development tools".
b) # yum groupinstall "Development tools"

-
 
2 members found this post helpful.
Old 01-04-2014, 10:56 AM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,362

Rep: Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004
Quote:
Originally Posted by arcolombo698 View Post
will this also give me c++? or just compiling tools?
c++ is a language, it's not something that can be "installed" (that's like asking how to install html), so you need to clarify your question. The above posts are telling you how to install a c++ compiler so that you can build c++ code, since that's the closest logical interpretation of what you're asking.

---------- Post added 01-04-14 at 08:56 AM ----------

Quote:
Originally Posted by arcolombo698 View Post
[acolombo@hpc-login2 ~]$ yum groupinstall "development tools"
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
You need to be root to perform this command.
So become root.

Code:
su -
and type in root's password
 
Old 01-04-2014, 01:24 PM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by knudfl View Post
Installing the c++ compiler :

1) $ su <enter-root-password>
2) # yum install gcc-c++

If you also want all the other "Development tools" :
a) $ yum grouplist
.. to check how to spell "Development tools".
I.e. it is not "development tools".
b) # yum groupinstall "Development tools"

-
Thanks for the spelling correction (I didn't have a Red Hat based box handy to check on). It's really obnoxious how Red Hat and friends use capitalization in the package group names.
 
  


Reply


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
Keeping size of VM file down - QEMU/KVM guest running Centos 6, inside Centos 6 host rylan76 Linux - Virtualization and Cloud 2 01-24-2013 04:22 PM
Installing wireless network card drivers for ThinkPad T410 running CentOS 6.2 student23 Linux - Newbie 4 03-27-2012 10:23 AM
Problems installing and running Frostwire on Acer One running Linpus Linux ricky1981 Linux - Newbie 1 12-19-2008 09:24 AM
Problem installing IPW2200 wireless on Acer laptop running CentOS 4.5 pdown85 Linux - Wireless Networking 7 01-15-2008 04:59 PM
Installing TOra 1.3.18 & Qt 3.3.5 on CentOS 4.1 (RHEL 4 U1) box running Oracle 10g R2 dbaxps Linux - Software 2 02-22-2007 09:41 AM


All times are GMT -5. The time now is 12:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration