LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 05:33 PM   #16
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30

Well, now everything works, this was one strange inccident. I restarted the computer.
 
Old 08-17-2006, 06:15 PM   #17
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Ok, for future reference:
Please don't use foul language on the boards. I would appreciate if you
edited your post and took that out ;}

... and as an explanation for your apt-get problem:
apt-get is quite greedy, it wants its database to itself; if you
happen to have e.g. synaptic or some other package-manager open, or
are running apt-get in a separate window, too, you'll get the message
you saw. A reboot will obviously fix that problem, too.


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

Original Poster
Rep: Reputation: 30
I tried it again, with no windows open, same thing happened. Then I rebooted, and tried again, but same thing again.

Hmm, am I missing something?
 
Old 08-17-2006, 10:17 PM   #19
linux=future
Member
 
Registered: Apr 2005
Distribution: Debian
Posts: 154

Rep: Reputation: 30
Type sudo before you type the rest of the command. When it says "are you root?" it's really just a reminder to type sudo before the command. You will be prompted for the password for whatever user account you are using. That "are you root?" is kind of dumb in that its not as much of a question as a suggestion. When you typed yes, it started the command yes, which just prints lots of y's on the screen. But I think you noticed that...
 
Old 08-17-2006, 11:07 PM   #20
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
Code:
sudo apt-get install anjuta
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package anjuta
Argh! I redownloaded it and tried again, but same thing.
 
Old 08-18-2006, 12:23 AM   #21
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
try
Code:
sudo apt-get install anjuta
look at the error, it can't find the package
so try adding the universe and multiverse repositorys

Last edited by binary_y2k2; 08-18-2006 at 12:24 AM.
 
Old 08-18-2006, 07:32 AM   #22
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
What are universe and multiverse repositorys? I searched around on google, and wikiepedia, but I didn't find anything.
 
Old 08-18-2006, 10:44 AM   #23
linux=future
Member
 
Registered: Apr 2005
Distribution: Debian
Posts: 154

Rep: Reputation: 30
Well, while everyone here likes to use apt-get for everything, I like the feel of synaptic. You won't need to open a terminal window to use it, and it has a comfortable GUI interface. To open synaptic, go to System->Administration->Synaptic Package Manager. You will be prompted for your password. Within synaptic, choose Settings->Repositories. Click add. Click the universe repository and click ok. Go into Settings->repositories again and add the multiverse repository in the same way. It will say something like must reload package information, just say yes. You will see a list of packages. Scroll through them and click the check box next to anjuta. Then click install.
 
Old 08-18-2006, 06:43 PM   #24
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
Hmm. You have defenitly helped alot, I will try to remember this for future refrence.

But my question.

http://img216.imageshack.us/img216/2...eenshotmh6.png

I didn't have an option to install it, I'll show you.

http://img89.imageshack.us/img89/705...enshot1ba8.png

Ohh wait, do I just install from terminial? Yes, yes I do.

Thanks, is their a reputation system on these forums?

Last edited by User Name.; 08-18-2006 at 06:45 PM.
 
Old 08-18-2006, 07:06 PM   #25
User Name.
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.04
Posts: 178

Original Poster
Rep: Reputation: 30
It has erorrs tring to compile a simple hello world program.

Code:
#include
<stdio.h>

int main()
{
  printf( "Hello world.\n" );
  getchar();
  return 0;
}
 
Old 08-22-2006, 10:54 AM   #26
linux=future
Member
 
Registered: Apr 2005
Distribution: Debian
Posts: 154

Rep: Reputation: 30
Do'h. Instead of install, I meant apply. This is the danger of helping people with Linux from Windows....

What do the errors say? Well, I see one anyway. The #include <stdio.h> must be on the same line. If you want to include multiple files, they must each have their own #include statement. Like so

Good:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

BAD:
#include
<stdio.h>
<stdlib.h>
<string.h>

Also, and this isn't really an error, the getchar() statement does not have its return value go into a variable (input= getchar() instead of getchar()). This is fine if all you want to do is pause the program until you type something though.
 
  


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 07:25 PM.

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