The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to compile linux kernel on redhat bhattbonny UNIX for Dummies Questions & Answers 2 07-22-2008 08:34 AM
help to compile wwwdev High Level Programming 2 08-29-2006 04:13 PM
How do I compile source undfer Suse Linux? Mark Ward Linux 3 05-26-2006 10:28 AM
Compile freeBSD binaries in Linux shalmoo High Level Programming 0 10-01-2003 12:38 AM
compile C under linux? ctchung High Level Programming 2 09-20-2001 07:26 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-08-2008
Registered User
 

Join Date: Sep 2008
Posts: 3
Compile C++ under linux, need help

I am a Linux noob, and have been trying to compile some source in Linux and I am lost. I am a game modder and I have some open source code which I have compiled in windows a million times but now I need to compile in Linux.

If this thread fails to help me, I will credit anyone who can personally help me when I do my next project.

So far I have Debian 4.0 and Ubutu 8.04 desktops on VMware server. I am NOT a command line kind of guy, so the Intel Linux compiler and Kdevelope applications are of peak interest to me. The problem is I can't get them installed on about (4) versions of Linux.

When I launch install.sh for the intel compiler I select "run in terminal" since "Run" does nothing and then it tells me "one of the missing commands is g++" and "locate and install the proper g++ package". I assume that means I need to install something before I install the Intel compiler. I researched g++ package for Debian and found the etch g++ portable compiler package. I downloaded it but don't know what to do with it, there is no install file. <<---windows brain-washed

My questions are:
Am I on the right track?
How do I proceed from this point?

Before you answer...this is a learning process for me, please be specific.
Reply With Quote
Forum Sponsor
  #2  
Old 09-08-2008
agn agn is offline
Registered User
 

Join Date: Feb 2008
Posts: 97
If you have internet access then open a terminal and type (assuming you're logged in as 'root')
Code:
sudo apt-get install g++
to install g++ (GNU C++ Compiler). You'll be asked for your password if you're not logged in as root. And this is ok.
Reply With Quote
  #3  
Old 09-09-2008
Registered User
 

Join Date: Sep 2008
Posts: 3
Compile C++ under linux, need help

When I do that it asks me for a password then when I enter what I think it shoud be it says "username is not in the sudoers file". "this incident will be reported"
Reply With Quote
  #4  
Old 09-09-2008
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 920
Try su - instead, enter the root password, and then apt-get install g++. You'll then need to exit from the root shell.
Reply With Quote
  #5  
Old 09-09-2008
Registered User
 

Join Date: Sep 2008
Posts: 3
compile c++

Well, I tried your first suggestion on ubutu instead of debian and presto! it worked. I installed the intel compiler and it finished. So thanks for that! Is it supposed to have an application shortcut? because I can't find the application...heh

I am thinking maybe it launches automaticlly when I initiate a file in my source code???

Thanks for your help thus far!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0