Cannot create executables under 9.1
I'm a recent convert to Slackware and sofar I really like what I see. Once problem I'm having that has become very troublesome is the following. Whenever I attempt to run a standard configure script before compiling something, I always get the following message:
creating cache ./config.cache checking whether make sets ${MAKE}... yes checking for gcc... gcc checking whether the C compiler (gcc ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. I'm pretty confident that I have gcc installed (it shows some information when I do a gcc -v). I've searched for this problem here on the forums, and found several others who are experiencing this same problem, but I cannot find a solution. Can anybody help??? |
Run pkgtool to look at your installed packages. In order to compile 'C' programs you will need (from /a seies) findutils, gawk, (from /d series)make, binutils, kernel headers, gcc. You may also need autoconf and automake. That's the minimum.
|
i know whatcha mean!
hey! i just asked the question last week, and no one seemed to have any idea whats wrong. I have slack 9.0 so, its not your version... but i got around the issue by experimenting blindly. i got the same exact error, that gcc could not create executables but when i moved the very same driver to a new directory: /usr/local/thinkpad and ran the ./configure program it compiled everything perfectly! so i can only guess that there is some sort of path requirment for gcc compiles....
okay i really don't know why it worked, but try moving it to a local directory... since i've got the modem working now, I' ve been downloading dropline for the past 21 hours! good luck. P.S. I've been puzzled where to put things in the slack dir system, so anyone else reading this can you suggest a good system on where one should put programs newly downloaded? or images? or mp3s? |
Slack is about the most unix-like linux out there, and the directory structure is very sane. Images and MP3s, just put anywhere in /home/username
For downloaded programs, you'll probably want to keep them in your /home as well - but you'll install into /usr or /usr/local |
Did you install the full glibc package ? You'll need it to compile programs. It's located in the /slackware/l dir on the cd.
|
Thanks guys! Turns out I didn't have all of glibc installed. Everthing works great now.
|
All times are GMT -5. The time now is 01:32 PM. |