LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-03-2014, 11:13 PM   #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-03-2014, 11:29 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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-03-2014, 11:30 PM   #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-03-2014, 11:31 PM   #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, 07:02 AM   #5
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
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, 09:56 AM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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, 12:24 PM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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 03:22 PM
Installing wireless network card drivers for ThinkPad T410 running CentOS 6.2 student23 Linux - Newbie 4 03-27-2012 09:23 AM
Problems installing and running Frostwire on Acer One running Linpus Linux ricky1981 Linux - Newbie 1 12-19-2008 08:24 AM
Problem installing IPW2200 wireless on Acer laptop running CentOS 4.5 pdown85 Linux - Wireless Networking 7 01-15-2008 03: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 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:02 AM.

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