LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-13-2012, 04:20 PM   #1
WhiteHotLoveTiger
Member
 
Registered: Jun 2012
Location: NB, Canada
Distribution: Slackware
Posts: 73

Rep: Reputation: 2
thttpd install - gcc issue


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?
 
Old 06-13-2012, 05:08 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Are you running it as root? Sounds like it may be a perms problem preventing the file creation.
 
Old 06-13-2012, 05:30 PM   #3
WhiteHotLoveTiger
Member
 
Registered: Jun 2012
Location: NB, Canada
Distribution: Slackware
Posts: 73

Original Poster
Rep: Reputation: 2
Yep, I'm running it as root.

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.
 
Old 06-13-2012, 05:45 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
See if you have a config.log file in your log directory that should give you some detailed info on the exact error.
 
1 members found this post helpful.
Old 06-13-2012, 09:19 PM   #5
WhiteHotLoveTiger
Member
 
Registered: Jun 2012
Location: NB, Canada
Distribution: Slackware
Posts: 73

Original Poster
Rep: Reputation: 2
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.
 
Old 06-13-2012, 09:30 PM   #6
WhiteHotLoveTiger
Member
 
Registered: Jun 2012
Location: NB, Canada
Distribution: Slackware
Posts: 73

Original Poster
Rep: Reputation: 2
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'?
 
Old 06-14-2012, 01:40 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 6 :
Quote:
.. a program called 'as' ?
"/usr/bin/as"

Provided by the package binutils. ( Install cd / DVD : slackware/d/ ).
 
1 members found this post helpful.
Old 06-14-2012, 10:11 AM   #8
WhiteHotLoveTiger
Member
 
Registered: Jun 2012
Location: NB, Canada
Distribution: Slackware
Posts: 73

Original Poster
Rep: Reputation: 2
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.
 
  


Reply



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
yum install gcc issue lensem Linux - Software 5 02-16-2009 07:59 AM
yum install gcc doesn't set the lastest gcc ver 4.3.x kim,jw Linux - Newbie 3 12-22-2008 11:51 PM
thttpd domain name saveme Linux - Networking 0 11-19-2006 09:44 PM
thttpd and Apache shobalk Linux - Software 0 05-09-2006 09:35 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration