ubuntu 8.04.1 LTS help

Page 1 of 1

7 Replies - 989 Views - Last Post: 26 October 2008 - 07:39 AM

#1 prabhagharan   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 09-September 07

ubuntu 8.04.1 LTS help

Posted 25 October 2008 - 02:11 AM

Have installed ubuntu 8.04.1 LTS in my frnds computer

We we tried to compile some C and C++ programs but non of it was compiled.
Why? what is wrong with this ubuntu 8.04.1 LTS?
Do i need to install C/C++ compilers?
If so plz say how to install ?
I have also tried by typing "apt-get install gcc" code in terminal . I got some error messages
I am new to linux :rolleyes:
plz give me clear instruction...

Is This A Good Question/Topic? 0
  • +

Replies To: ubuntu 8.04.1 LTS help

#2 MorphiusFaydal   User is offline

  • D.I.C Lover
  • member icon

Reputation: 44
  • View blog
  • Posts: 1,376
  • Joined: 12-May 05

Re: ubuntu 8.04.1 LTS help

Posted 25 October 2008 - 03:00 AM

You should be able to install the "build-essential" package from within Synaptic (the "Add/Remove Programs" application in the menu).

If you want to do it from the command line, it's "apt-get install build-essential"
Was This Post Helpful? 0
  • +
  • -

#3 prabhagharan   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 09-September 07

Re: ubuntu 8.04.1 LTS help

Posted 25 October 2008 - 05:41 AM

ya we tried that but not compiling!!
I want to know whether ubuntu 8.04.1 LTS has inbuilt compiler or not
Was This Post Helpful? 0
  • +
  • -

#4 Nykc   User is offline

  • Gentleman of Leisure
  • member icon

Reputation: 740
  • View blog
  • Posts: 8,654
  • Joined: 14-September 07

Re: ubuntu 8.04.1 LTS help

Posted 25 October 2008 - 06:57 AM

The gnu c++ compiler should be inclusive with Ubuntu, how are you trying to compile your programs?

Are you using an IDE such as Code::Blocks, or are you compiling from the terminal using make build?
Was This Post Helpful? 0
  • +
  • -

#5 prabhagharan   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 09-September 07

Re: ubuntu 8.04.1 LTS help

Posted 25 October 2008 - 07:31 AM

I compiled like
cc filename.c
i have also replaced cc with gpp,gcc and lot more
Was This Post Helpful? 0
  • +
  • -

#6 Nykc   User is offline

  • Gentleman of Leisure
  • member icon

Reputation: 740
  • View blog
  • Posts: 8,654
  • Joined: 14-September 07

Re: ubuntu 8.04.1 LTS help

Posted 25 October 2008 - 07:39 AM

And what is the message you are receiving?

Are your paths correct?
Make sure you follow these instructions and see if this helps any, if not report back with a description of your problem. Saying something don't work is like telling us to describe you in detail based off of your posts.

http://linuxhelp.blo...rams-using.html
Was This Post Helpful? 1
  • +
  • -

#7 prabhagharan   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 09-September 07

Re: ubuntu 8.04.1 LTS help

Posted 26 October 2008 - 07:03 AM

k i ll try that and report errors
Was This Post Helpful? 0
  • +
  • -

#8 Nykc   User is offline

  • Gentleman of Leisure
  • member icon

Reputation: 740
  • View blog
  • Posts: 8,654
  • Joined: 14-September 07

Re: ubuntu 8.04.1 LTS help

Posted 26 October 2008 - 07:39 AM

Hope it works for you.

Also is there a reason you are not using Code::Blocks, or Eclipse, or Dev-C++ IDE's? I use Netbeans & Code::Blocks exclusively. But I like to compile Java applications in CLI.

Either way, there are several alternatives to compiling...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1