LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-19-2006, 02:16 PM   #1
Peter Cooper
LQ Newbie
 
Registered: Jul 2006
Posts: 13

Rep: Reputation: 0
"c compiler cannot create executables" error


There are a few threads in the forum on this error message, but but it doesn't seem like there's a good solution available.

One said the error was already fixed, which I don't think it is because I've just downloaded the latest Ubuntu 6.06 LTS and have updated gcc and glibc (?) via Synaptic. And when I type ./configure I still get that error.

Another thread was talking about hacking some configuration files and other stuff that's beyond what I want to be doing as a new user.

Is there a working gui based fix for this seemingly obvious and well documented bug, or should I just give up until the next release, or until I'm comfortable following the editing instructions?
 
Old 10-20-2006, 01:09 PM   #2
Hendronicus
Member
 
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 173

Rep: Reputation: 38
Did you try compiling in a root console window?
 
Old 10-20-2006, 03:51 PM   #3
caligeek
LQ Newbie
 
Registered: Oct 2006
Distribution: Ubuntu
Posts: 1

Rep: Reputation: 0
I tried it as root (using the sudo su command). Didn't work for me.
 
Old 10-20-2006, 04:50 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Where is the code located. A partition such as /tmp may be mounted without execution or library permissions. I've run into a couple cases where the ./configure and the "make" phase couldn't run as root. Also, the tarball may have uncompressed with a uid ownership that you don't have. In most cases, you should compile code as a normal user with the project directory being somewhere inside your HOME directory.
 
Old 10-21-2006, 01:40 PM   #5
Hendronicus
Member
 
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 173

Rep: Reputation: 38
I agree with the above post. I've tried compiling kernel source on a vfat partition before and it gave me a similar error.
 
Old 10-21-2006, 02:36 PM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
A USB vfat drive has to have the permissions assigned for the entire partition when the drive is mounted.
You can use the umask and dmask options to mask out the X permission bit for files. The owner and group of the contents of the drive also can't be changed on the contents, which a ./configure script or makefile may try to do.

The only time I compile outside my home directory is when I use rpmbuild to build a source rpm, or the kernel. Some people will set up a ~/$HOME/rpm/ directory tree and build their packages there. I have a /home/downloads/ directory where I download packages. Then after the "sudo make install" phase, I'll delete the projects directory and save the original tarball.
 
Old 10-21-2006, 03:20 PM   #7
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
This error usually means you don't have the binutils package installed for good measure make sure to install the build-essential package as well.
 
  


Reply


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
error: "c compiler cannot create executables" when trying to run ./configure fedoraemu Linux - Software 2 04-24-2007 07:43 PM
Cannot compile Seamonkey: "cannot create executables" yozhhh Linux - Software 0 12-29-2005 09:11 AM
"cannot exec `as': ..." AND "C compiler cannot create ..." pr3st0 Linux - Software 0 10-15-2004 12:42 PM
error: C compiler cannot create executables bublebboy Linux - Newbie 3 12-31-2003 11:31 AM
snort compile errors "C compiler cannot create executables" RKris Linux - Software 2 11-07-2003 02:08 AM


All times are GMT -5. The time now is 04:59 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