Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old February 10th, 2007   #1
Rabbit_Alex
5 Cups of Ubuntu
 
Rabbit_Alex's Avatar
 
Join Date: Feb 2007
Location: Michigan, USA
Beans: 31
Edubuntu 6.10 Edgy
g++ compiler

How can I install the g++ compiler for Ubuntu? It isn't listed under the programming section in the Add/Remove applications menu.

Thank you
__________________
Michigan Technological University
Computer Science Major
Rabbit_Alex is offline   Reply With Quote
Old February 10th, 2007   #2
Mithrilhall
Ubuntu Extra Shot
 
Mithrilhall's Avatar
 
Join Date: Sep 2005
Location: The American Empire
Beans: 349
Re: g++ compiler

I see it when using apt-cache search via the console.

Code:
apt-cache search g++ | grep "g++"
__________________
Registered Linux User # 437006
http://sidux.com/ - K Desktop Environment (Debian Sid)
MasterShaper - Network traffic under control

Currently listening to
Mithrilhall is offline   Reply With Quote
Old February 10th, 2007   #3
Maestro23
I Ubuntu, Therefore, I Am
 
Maestro23's Avatar
 
Join Date: May 2005
My beans are hidden!
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to Maestro23 Send a message via Yahoo to Maestro23
Re: g++ compiler

Quote:
Originally Posted by Rabbit_Alex View Post
How can I install the g++ compiler for Ubuntu? It isn't listed under the programming section in the Add/Remove applications menu.

Thank you
I found it thru Synaptic. Possible you might have to enable some extra repositories if you are not seeing it.

How-To: http://www.psychocats.net/ubuntu/sources
__________________
Linux is NOT Windows:http://linux.oneandoneis2.org/LNW.htm
Is Ubuntu for you?: http://ubuntuforums.org/showthread.php?t=63315
Hardy Heron 8.04 Guide:http://ubuntuguide.org/wiki/Ubuntu:Hardy
Maestro23 is offline   Reply With Quote
Old February 10th, 2007   #4
Rabbit_Alex
5 Cups of Ubuntu
 
Rabbit_Alex's Avatar
 
Join Date: Feb 2007
Location: Michigan, USA
Beans: 31
Edubuntu 6.10 Edgy
Re: g++ compiler

I tried enabling the extra repositories using that guide, but it says I am not on the sudoers list.
How can I login as root to do this?

I am new to linux by the way.
__________________
Michigan Technological University
Computer Science Major
Rabbit_Alex is offline   Reply With Quote
Old February 10th, 2007   #5
gradedcheese
Has an Ubuntu Drip
 
Join Date: Aug 2005
Location: san francisco
My beans are hidden!
Ubuntu 8.10 Intrepid Ibex
Send a message via AIM to gradedcheese
Re: g++ compiler

You should be in the sudoers list. Take a look at "/etc/group" and make sure that your user name appears in the 'admin' group, like this:

Code:
admin:x:112:your_name_here
If it doesn't, you need to add it. Without sudo you can't edit that file, but you can reboot into recovery mode and do it there. You'll need to use a text-based editor to do it, I think people who are used to GUI stuff prefer 'pico' or 'nano'. So:

pico /etc/group
(edit the file, save, exit)
shutdown -r now

Then when you boot up, run "sudo apt-get install build-essential"
gradedcheese is offline   Reply With Quote
Old February 10th, 2007   #6
TheWizzard
Extra Foam Sugar Free Ubuntu
 
TheWizzard's Avatar
 
Join Date: Jun 2006
Location: Groningen
Beans: 834
Kubuntu 8.04 Hardy Heron
Send a message via MSN to TheWizzard
Re: g++ compiler

Code:
sudo aptitude install build-essential
TheWizzard is offline   Reply With Quote
Old February 12th, 2007   #7
Rabbit_Alex
5 Cups of Ubuntu
 
Rabbit_Alex's Avatar
 
Join Date: Feb 2007
Location: Michigan, USA
Beans: 31
Edubuntu 6.10 Edgy
Re: g++ compiler

Quote:
Originally Posted by gradedcheese View Post
You should be in the sudoers list. Take a look at "/etc/group" and make sure that your user name appears in the 'admin' group, like this:

Code:
admin:x:112:your_name_here
If it doesn't, you need to add it. Without sudo you can't edit that file, but you can reboot into recovery mode and do it there. You'll need to use a text-based editor to do it, I think people who are used to GUI stuff prefer 'pico' or 'nano'. So:

pico /etc/group
(edit the file, save, exit)
shutdown -r now

Then when you boot up, run "sudo apt-get install build-essential"
Thank you gradedcheese. It worked perfectly. It's strange how I took myself out of the sudoers list though.
__________________
Michigan Technological University
Computer Science Major
Rabbit_Alex is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:31 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry