| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-19-2006, 02: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, 01:09 PM
|
#2
|
|
Member
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 172
Rep:
|
Did you try compiling in a root console window?
|
|
|
|
10-20-2006, 03: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, 04:50 PM
|
#4
|
|
Moderator
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, 01:40 PM
|
#5
|
|
Member
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 172
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, 02:36 PM
|
#6
|
|
Moderator
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, 03:20 PM
|
#7
|
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:58 AM.
|
|
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
|
|