Linux - SoftwareThis 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
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.
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.
I'm trying to build and install thttpd on a slackware box via a SlackBuilds.org script. The install starts off alright, but fails when testing gcc:
Code:
...
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -fPIC ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
I've just installed gcc from the official slackware repositories, but I guess I'm missing something else. Can someone illuminate me?
I came across this thread, which seems to be describing a similar problem to mine, so I tried installing glibc, but I'm still getting the same result. To make sure I had the right glibc, I installed all five packages that showed up when I ran "slackpkg search glibc", but I'm still getting my original error message.
Thanks Kustom, that's put me back on the right track. I was able to see that it's missing "libmpc.so.2". I searched for libmpc with slackpkg and installed the package that showed up.
It's still failing at the same spot though. When I check the config.log file now, it's complaining about missing "libmpfr.so.4". slackpkg isn't returning any results for this one, so I'm going to start doing a little more research online.
So I found libmpfr by searching for just 'mpfr' in slackpkg. Now I'm still stopping at the same point, but instead of complaining about a missing library, I'm getting this in my config.log:
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:573: checking host system type
configure:594: checking target system type
configure:612: checking build system type
configure:638: checking for gcc
configure:751: checking whether the C compiler (gcc -O2 -fPIC ) works
configure:767: gcc -o conftest -O2 -fPIC conftest.c 1>&5
gcc: error trying to exec 'as': execvp: No such file or directory
configure: failed program was:
#line 762 "configure"
#include "confdefs.h"
main(){return(0);}
I'm not sure where to look next. Does this mean that the sample code to test gcc tried to exec into a program called 'as'?
Thanks knudfl. I've installed the binutils package, and that got me past the problem with gcc. After that I had to install the kernel headers, and then, finally, I got it to work.
I kind of expected more of these packages to be there already. This is a linode that I'm getting set up, and I'm using their default slackware install. Maybe next time I'll try doing the install myself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.