» Software and Services » Linux »

C Compiler for Ubuntu (6 posts)

I loaded up the Ubuntu Linux, and have tried to install various downloads but keep getting the message that I need a "C Compiler" have looked around and am more confused than ever.

Can anyone help. thanks, regards Derek

Re: C Compiler for Ubuntu

Are you running this off the Live CD? It might not have the GNU C compiler installed. At a command prompt, please type gcc and if it complains as not being found, there you have the answer.

HTH.

Harish

Re: C Compiler for Ubuntu

Thanks Harish, but i've installed not running from Live CD, i typed gcc as you suggested but got the message "gcc: no input files", any suggestions?

regards

Derek

Re: C Compiler for Ubuntu

Have you tried installing the 'build-essential' package?

You can do this by opening a terminal window and typing: sudo apt-get install build-essential

Or you can open up Synaptic Package Manager and do it from there.

This trick works on both Hoary Hedgehog (5.04) and Breezy Badger (5.10).

Most programs that you want to install on your Ubuntu system should be avaliable through one of the main Debian or Ubuntu repositories.

Re: C Compiler for Ubuntu

try this:

$ cat - <test.c > #include > int main(void) { printf ("testn"); } > EOF $ gcc -o test test.c $ ./test test $

I think that you must install kdevelop or other IDE, as root try:

# apt-get install kdevelop

regards

de

after package is installed...

What do you do after the package is installed?

Post a Reply

Posting as an anonymous user (Sign in if you have an account, or register to create one)

Best Deals on PCWorld

Mobile PhonesView all »
NotebooksView all »
TabletsView all »
Printers & ScannersView all »
Networking, Wireless & VoIPView all »