BenV's notes

C compiler cannot create executables

by on Oct.26, 2009, under Software

Yeah, I bet you didn’t know that. You’re so stupid.
Anyway, this isn’t the first time I run into this, so I figured it would be good to “jot this down” as Choco Billy would say.
I got this error while trying to configure apache on a new domU (which has almost no packages installed, which is why I ran into this):

root@jemoeder:/usr/src/apache/httpd-2.2.14# ./configure $TEN_MILLION_OPTIONS_HERE
checking for chosen layout... Apache

*blablabla I'm a dumbass yadieya*

checking for C compiler default output file name...
configure: error: in `/usr/src/apache/httpd-2.2.14/srclib/apr':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Well, I’ll give you the details: it’s missing an assembler. You can find out about this if you actually bother to read the config.log file in the srclib/apr dir:

gcc: error trying to exec 'as': execvp: No such file or directory

The simple fix: install an assembler. Slackware has the binutils package for that.
slackpkg install binutils, done.




:, ,

Leave a Reply

You must be logged in to post a comment.