LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 08-17-2006, 12:34 AM   #1
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Rep: Reputation: 30
C/C++ Compilier.


Hello, I have just joined the forums, so whatever.

I am looking for a C/C++ compilier for linux, I can't find any on google. So, you know of any?
 
Old 08-17-2006, 12:38 AM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 58
search your package manager (synaptic) for gcc
 
Old 08-17-2006, 12:43 AM   #3
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
I can't beleive I actually under stood that.

Hmm, but how would I install it? It isn't installed yet.

Wait, I think I installed it, it now has a green box next to it that installed programs do, how would I run it?

Last edited by User Name.; 08-17-2006 at 12:48 AM.
 
Old 08-17-2006, 03:07 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
man gcc
for details...


Cheers,
Tink
 
Old 08-17-2006, 09:18 AM   #5
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
I couldn't find any helpful informaiton in the manuel...
 
Old 08-17-2006, 09:21 AM   #6
computer
Member
 
Registered: Nov 2005
Posts: 89

Rep: Reputation: 15
try anjuta IDE you can do lots of languages with it
 
Old 08-17-2006, 09:29 AM   #7
coolb
Member
 
Registered: Apr 2006
Location: Cape Town, South Africa
Distribution: Gentoo 2006.1(2.6.17-gentoo-r7)
Posts: 222

Rep: Reputation: 30
GCC works, grab it from http://www.gnu.org/

Quote:
I couldn't find any helpful informaiton in the manuel...
There is tons of information. Are you sure it is installed? did 'man gcc' work?
 
Old 08-17-2006, 09:34 AM   #8
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
Yes, man gcc worked, I will read it again.

All I see is command aftetr command, and nothing about starting it up.

Last edited by User Name.; 08-17-2006 at 10:43 AM.
 
Old 08-17-2006, 11:00 AM   #9
slack_prad
Member
 
Registered: Nov 2005
Location: Chennai, India
Distribution: Ubuntu, Slackware 10.2
Posts: 31

Rep: Reputation: 15
Since you are on ubuntu, do a

Code:
sudo aptitude update
and

Code:
sudo aptitude install build-essential
this would install gcc g++ make etc things needed for building programs on linux
 
Old 08-17-2006, 01:12 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Quote:
Originally Posted by User Name.
Yes, man gcc worked, I will read it again.

All I see is command aftetr command, and nothing about starting it up.
"Starting it up" is as trivial as typing gcc followed by enter.
If you actually want to compile something (trivial), like
hello_world.c it becomes gcc hello_world.c
If this is not what you expected then you're probably not
after a compiler but after an IDE (which anjuta for instance is).
Or KDevelop.


Cheers,
Tink
 
Old 08-17-2006, 03:33 PM   #11
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
I hate asking so many quesitons, but atleast I am getting somewhere.

After I download Ajunta IDE from here, how would I install it?
 
Old 08-17-2006, 04:05 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
You don't install it from there.

You go (if you're using ubuntu):
apt-get install anjuta



Cheers,
Tink
 
Old 08-17-2006, 04:12 PM   #13
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
Uhh, hmm, the shell doesn't start. It loads, and then it closes immedietly. I just changed the host name of the computer, and everything worked fine, until that. I then went to system>administration>networking and it closed while loading.

When I did change the hostname I did click okay to a message, it said something about that my password won't be needed anymore or something.

Just when I think I have something done...
 
Old 08-17-2006, 04:18 PM   #14
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Sorry man, I don't do ubuntu or gnome, I'll shuffle the thread over to
our Ubuntu forum, hoping that someone can help. All I can say is that
under fluxbox changing the hostname wouldn't have such ill effects :}


Cheers,
Tink
 
Old 08-17-2006, 05:25 PM   #15
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
Now, I can't open anything, good thing I still have the home computer.

Well I restarted and everythign works fine, tried changing the hostname and an erorr massage came up saying, "If you change the hostname you will not be able to start any new applications, and will have to login again to start new applications."

I feel stupid.

Well lets try it out.

apt-get install anjuta
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
yes
y
y
y
y
y
y
y
y
y
y
y
y
y
y
y
y
y
y
y
y
y
y
y
y

Huh?

Last edited by User Name.; 08-17-2006 at 09:34 PM.
 
  


Reply

Tags
anjuta, c++


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
First time Compilier!!! chevyrulz099 Mandriva 4 07-24-2004 04:21 PM


All times are GMT -5. The time now is 03:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration