PDA

View Full Version : no c compiler!



timmy666
January 30th, 2006, 05:06 PM
when i try to install programs that i have downloaded (in source code) , ubuntu dosen't find any c compiler. and when i search on my disk for ex: gcc, cc, g++ it dosen't find anything....

dosen't ubuntu have a standard c compiler?
and if not, how can i install one the easiest way (im a noob)?

brk3
January 30th, 2006, 05:07 PM
Just open up synaptic package manager and install the package 'build-essential' which will automatically install all compilers and development librarys needed to compile most software.

timmy666
January 30th, 2006, 07:33 PM
thanks.. but now it says

checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

every time i try to install a program

SolidCube
February 6th, 2006, 10:30 AM
I have the same issue re executable.

Astonishing that a modern distro wouldn't include basic GNU dev tools by default. Are we doing something wrong?

I'm NOT a noob but I don't really have time to waste on this kind of thing. Looks like it's back to SuSE.

shawway
December 31st, 2006, 05:33 AM
After same errors this worked fine for me:

sudo apt-get install linux-kernel-headers
sudo apt-get install build-essential

nadee
January 24th, 2007, 08:58 AM
when i try to install programs that i have downloaded (in source code) , ubuntu dosen't find any c compiler. and when i search on my disk for ex: gcc, cc, g++ it dosen't find anything....

dosen't ubuntu have a standard c compiler?
and if not, how can i install one the easiest way (im a noob)?

i want to compile c program, but i dont know how to install c compiler in ubuntu

CareySchug
January 24th, 2007, 10:39 PM
Thank you !!!

Expanding on another response. Maybe I'm not sutpized that theese are not INCLUDED in the basic isntall, after all, ubuntu is for unsophisticated users, but i *AM* surprised (and dissapointed) that the instal process is not covered in the desktop install guide (also not in the server install guide)

unfortunately, apparently need a different compiler. It's said to be the SUN compiler, as I get errors in the compile, and the make fails.


After same errors this worked fine for me:

sudo apt-get install linux-kernel-headers
sudo apt-get install build-essential

Manolicious
October 8th, 2007, 11:57 PM
Just open up synaptic package manager

how do you do that? Where is it? I tried search my drive for it but couldn't find any file titled "synaptic."

maddog39
October 9th, 2007, 01:52 AM
how do you do that? Where is it? I tried search my drive for it but couldn't find any file titled "synaptic."
Its easy. Go to: System > Administration > Synaptic Package Manager, click on Search, search for build-essential, select the package, and then hit Apply. That will then install the package build-essential for you. You can do the same thing for the linux-kernel-headers package.

kosy
October 9th, 2007, 11:10 PM
Done what you suggest but when getting: "configure: error: No C# compiler found" when doing ./configure.

Any idea?

Auria
October 10th, 2007, 03:37 PM
Done what you suggest but when getting: "configure: error: No C# compiler found" when doing ./configure.

Any idea?

Install mono (don't know the exact package names, should be easy to find with search)

Lord Illidan
October 10th, 2007, 03:41 PM
Do you want a C compiler or a C# compiler??? They're different, you know.

kosy
October 10th, 2007, 05:16 PM
Did like was instructed here: http://f-spot.org/How_To_Build_from_HEAD

After doing that then I got this error:
checking for mono.pc... configure: error: missing the mono.pc file, usually
found in the mono-devel package

So installed mono-devel package and then this error came up:
checking for System.Runtime.Remoting.dll... configure: error: missing required
mono 2.0 DLL: System.Runtime.Remoting.dll

I can not find this file.:(

Maybe I need to install C# compiler??
How do I install that one?

/kosy

sloggerkhan
October 10th, 2007, 05:22 PM
if it's looking for .dll files, it's probably a program specific to windows.

kosy
October 15th, 2007, 11:18 AM
In addition I needed to installed:
libmono-system-runtime2.0-cil
liblcms-dev
libgphoto2.dev

Then all worked for me:)
Thanks to Maxxer at F-Spot.org

thanks all
/kosy

takerphenom
January 23rd, 2008, 08:40 PM
hi, i'm kind of a noob at ubuntu and i keep getting errors for every installation i try to make. I entered the command "sudo apt-get install build-essential", but that failed. I also tried the synaptic package manager but i got this error:
"E: /var/cache/apt/archives/libc6_2.6.1-1ubuntu10_i386.deb: corrupted filesystem tarfile - corrupted package archive"

The terminal output was:
(Reading database ... 129989 files and directories currently installed.)
Preparing to replace libc6 2.6.1-1ubuntu9 (using .../libc6_2.6.1-1ubuntu10_i386.deb) ...
Unpacking replacement libc6 ...
dpkg: error processing /var/cache/apt/archives/libc6_2.6.1-1ubuntu10_i386.deb (--unpack):
corrupted filesystem tarfile - corrupted package archive
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.6.1-1ubuntu10_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

please help

ShirishAg75
February 29th, 2008, 03:51 AM
do the following in your terminal :-



sudo apt-get --fix-broken


If it still doesn't respond try



sudo apt-get --fix--missing


I never had a corrupted package archive but saw these commands on the apt-get manual page. Perhaps they might prove to be assistance.

There is something also called dselect which could be good. But haven't used it so can't say much.

jsoderba
February 29th, 2008, 08:37 PM
do the following in your terminal :-
There is something also called dselect which could be good. But haven't used it so can't say much.dselect is an apt front-end like synaptic or aptitude, so it will not help him fix his corrupted apt files. It is also ancient and infamously hard to use, so you are generally not advised to use it.

michel_f
April 28th, 2008, 01:10 AM
sudo apt-get install build-essential

worked for me too :D

saeid
May 29th, 2008, 07:30 AM
In addition I needed to installed:
libmono-system-runtime2.0-cil
liblcms-dev
libgphoto2.dev

Then all worked for me:)

me 2 :)

SontagBill
July 15th, 2008, 04:28 PM
Downloaded the build-essential package and found GCC as the compiler. Clicked on an extracted tarball install file but no GCC option to activate the file was displayed. Sorry for the inconvenience but all help would be appreciated.
regards, Bill

koolkev
August 21st, 2008, 05:03 AM
I too have gone to system>synapticpackagemanager>search for gcc>selected gcc> installed all that were highlighted.

I now have several gcc showing as installed as shown on a screen shot:

82295

anyhow if i search in applications I don't see anything.

Where would I expect to find the program?

I need a compiler for an online class in c programming so I am a beginner.

Vyoma
August 25th, 2008, 09:45 PM
...

anyhow if i search in applications I don't see anything.

Where would I expect to find the program?

I need a compiler for an online class in c programming so I am a beginner.

gcc is a command line compiler. You won't be able to find a Application menu entry for gcc.

Once installed though, you can invoke it at terminal and see if it exists.


gcc --version

You can even see from where it gets invoked from:


which gcc

To compile a file, you have to do something along the lines:


gcc myfile1.c -o myprog

You man need to include other linker options. For more details, check out gcc documentation (http://gcc.gnu.org/onlinedocs/).

mrhippieguy
September 16th, 2009, 09:50 PM
i has the same problem this forum was started with, except the solution would work, but my ubuntu has no internet access, and i need this program installed before october, so, any suggestions?

MadCow108
September 16th, 2009, 10:48 PM
it should be on the ubuntu cd:
http://ubuntuforums.org/showthread.php?t=381532

shae
September 19th, 2009, 09:02 PM
I believe at least some of the people are looking for an IDE. Perhaps something like Code::Blocks is what you want?


sudo apt-get install codeblocks

mrhippieguy
September 20th, 2009, 10:57 PM
okay did that, still gettin'

checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

every time. any ideas?

Joeb454
September 20th, 2009, 11:01 PM
Is build-essential installed?
sudo apt-get install build-essential

mrhippieguy
September 21st, 2009, 02:04 PM
iv'e done that a couple times now, still same message.