Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
10-19-2006, 03:16 PM
|
#1
|
LQ Newbie
Registered: Jul 2006
Posts: 13
Rep:
|
"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?
|
|
|
10-20-2006, 02:09 PM
|
#2
|
Member
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 176
Rep:
|
Did you try compiling in a root console window?
|
|
|
10-20-2006, 04:51 PM
|
#3
|
LQ Newbie
Registered: Oct 2006
Distribution: Ubuntu
Posts: 1
Rep:
|
I tried it as root (using the sudo su command). Didn't work for me.
|
|
|
10-20-2006, 05:50 PM
|
#4
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
10-21-2006, 02:40 PM
|
#5
|
Member
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 176
Rep:
|
I agree with the above post. I've tried compiling kernel source on a vfat partition before and it gave me a similar error.
|
|
|
10-21-2006, 03:36 PM
|
#6
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
10-21-2006, 04:20 PM
|
#7
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
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.
|
|
|
All times are GMT -5. The time now is 01:39 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|