LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-05-2007, 08:35 AM   #1
brittanythepirate
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Rep: Reputation: 0
Question configure: error: C compiler cannot create executables


Our sysadmin left and has not yet been replaced, so this humble codemonkey is attempting to do things herself. I am trying to install Python on our server, but I keep getting this error:

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

http://www.geocities.com/spamcollect...ess/config.log
config.log file from our server

random helpful background info:
server is running Slackware Linux
sysadmin liked the 'scorched earth' approach to security, so he removed absolutely everything that he deemed not to be immediately critical
I'm not exactly great with *nix, so speak slowly and use small words


Thanks for your help, everyone!
 
Old 11-05-2007, 09:38 AM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Re: configure: error: C compiler cannot create executables

You should have a "crt1.o" file in /usr/lib. If you do not, your C compiler and libraries are not setup properly. I am not a slackware user, so I cannot tell you how to re-install the C compiler and libraries.
 
Old 11-05-2007, 10:42 AM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
brittanythepirate, what distribution is your server? It is very likely that there is a pre-built and configured version of Python which can be installed with a single command to the package manager. If you tell us what distribution you are using, we can help to provide that command.

The distribution is something like redhat, suse, ubuntu, debian, slackware and so on. There is a standard file which identifies the distribution, but this is a fairly recent standardisation thing, and older installations may not respect it. Try this:
Code:
cat /etc/lsb-release
If this outputs some good information, paste it to this thread. If not, execute this command and paste the results:
Code:
ls -d /etc/*{release,version}
 
Old 11-05-2007, 11:13 AM   #4
brittanythepirate
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Original Poster
Rep: Reputation: 0
No luck.

David1357:
No luck finding that object file, or any similarly named object files for that matter.

matthewg42:
The result from running ls -d /etc/*{release,version} is:
/etc/slackware-version
So it looks like we do in fact have some version of Slackware. Considering how crazy things have been since our sysadmin left, it was probably a good idea to verify the distro.

So now it looks like I have to re-install (install?) the c compiler? I've never done that before. How hard is that, and what's involved?
 
Old 11-05-2007, 11:27 AM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally Posted by brittanythepirate View Post
David1357:
No luck finding that object file, or any similarly named object files for that matter.
On Debian that file (crt1.o) is present in the libc6-dev package among others but I would say this is what you need for Slackware however it is named there. For your original error you would need the binutils package installed to create an executable again however this is named in Slackware.
Quote:
matthewg42:
The result from running ls -d /etc/*{release,version} is:
/etc/slackware-version
So it looks like we do in fact have some version of Slackware. Considering how crazy things have been since our sysadmin left, it was probably a good idea to verify the distro.

So now it looks like I have to re-install (install?) the c compiler? I've never done that before. How hard is that, and what's involved?
No clue perhaps someone who uses Slackware can tell you the method on Debian you would install the build-essential package to get everything needed maybe something like this exists for your distro as well.
 
Old 11-05-2007, 12:48 PM   #6
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Arr, I've never maintained a slack install. I think I used one once, but never installed anything. I hope someone here will offer some specific advice. You might want to look inside this /etc/slackware-version file to see what the version is and post that.
 
Old 11-05-2007, 03:43 PM   #7
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by brittanythepirate View Post
David1357:
No luck finding that object file, or any similarly named object files for that matter.

matthewg42:
The result from running ls -d /etc/*{release,version} is:
/etc/slackware-version
So it looks like we do in fact have some version of Slackware. Considering how crazy things have been since our sysadmin left, it was probably a good idea to verify the distro.

So now it looks like I have to re-install (install?) the c compiler? I've never done that before. How hard is that, and what's involved?
If you go to http://packages.slackware.it/ you can search for files in packages. Apparently, your glibc installation is corrupt, as the file is in "glibc-2.5-i486-5" which you can download from glibc-2.5-i486-5 package

Apparently, pkgtool is the slackware utility for installing packages. It looks simple enough to use.
 
Old 11-05-2007, 05:02 PM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,959
Blog Entries: 52

Rep: Reputation: Disabled
It's a bit awkward if you can't find out what version it is. On installation disks and download mirrors all the development or programming stuff is in the directory /d.
 
Old 11-06-2007, 10:29 AM   #9
brittanythepirate
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Grr. Arg. Responses to posts so far, in no particular order:

former sysadmin must have deleted /d, because it's not there. @.@ Upon further inspection, I found that /etc/slackware-version says we have slackware version 9.0.

System complains that pkgtool and installpkg are invalid commands. If I were to download this from slackware's website, can I just drop it in a folder somewhere and use it?

My boss had mentioned perhaps just re-imaging the server and starting over, since it just hosts dev code, nothing production-wise. I may take him up on it. @.@
 
Old 11-06-2007, 02:21 PM   #10
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,959
Blog Entries: 52

Rep: Reputation: Disabled
Don't know how you would install pkgtool, etc, on its own, some of the more experienced Slackers might though. Also, don't know if 9 is still maintained, as far as security patches and so on go. Seem to remember only having seen 10.2, 11, and 12, on the mirrors. You might need a fresh start.
 
Old 11-07-2007, 09:10 AM   #11
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by brittanythepirate View Post
Grr. Arg. Responses to posts so far, in no particular order:

former sysadmin must have deleted /d, because it's not there. @.@ Upon further inspection, I found that /etc/slackware-version says we have slackware version 9.0.

System complains that pkgtool and installpkg are invalid commands. If I were to download this from slackware's website, can I just drop it in a folder somewhere and use it?

My boss had mentioned perhaps just re-imaging the server and starting over, since it just hosts dev code, nothing production-wise. I may take him up on it. @.@
Sounds like the "former sysadmin" burnt a few bridges if you don't even have "pkgtool" and "installpkg". I recommend a full re-install. You'll probably never track down all the missing and broken dependencies manually.
 
  


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
configure: error: C++ compiler cannot create executables dicou Linux - Newbie 15 12-22-2012 01:00 PM
configure: error: C compiler cannot create executables Geneset Linux - Newbie 7 07-13-2007 03:11 PM
configure: error: C compiler cannot create executables redsnapperke Linux - Software 11 06-05-2006 08:10 AM
configure: error: C compiler cannot create executables Mysteries Linux - Software 5 05-21-2006 01:22 AM
configure: error: C compiler cannot create executables The00Dustin Linux - Software 2 01-11-2006 02:33 PM


All times are GMT -5. The time now is 11:11 PM.

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