SlackwareThis Forum is for the discussion of Slackware Linux.
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 just installed Slackware 9.1 on my laptop last night. Today I went to make sure things were working correctly, I tried to compile a simple Hello World application in KDevelop(C++) and I get an error(status 77). I went to the project directory and tried to run ./configure manually. I got this feedback:
* cd /home/tathlyn/Projects/test/debug && CXXFLAGS="-O0 -g3" /home/tathlyn/Projects/test/configure --enable-debug=full
* checking for a BSD-compatible install... /usr/bin/ginstall -c
* checking whether build environment is sane... yes
* checking for gawk... gawk
* checking whether make sets $(MAKE)... yes
* checking for g++... g++
* checking for C++ compiler default output...
* configure: error: C++ compiler cannot create executables
* See `config.log' for more details.
Is there some C++ plug in for gcc that I need to get? I thought all that was needed was g++ to compile C++ programs. Since I did this install on an older computer, I didnt want to do a full install, so I could save some HD space and it is quite possible I did not install a package that I actually need. I just do not know how to find out if I am missing a package. Perhaps someone else can help me out on this?
OK. Here is what I get when I do 'cat config.log' (it is quite long).
$ ./configure
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
$ cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.57. Invocation command line was
configure:1489: checking for a BSD-compatible install
configure:1543: result: /usr/bin/ginstall -c
configure:1554: checking whether build environment is sane
configure:1597: result: yes
configure:1630: checking for gawk
configure:1646: found /usr/bin/gawk
configure:1656: result: gawk
configure:1666: checking whether make sets $(MAKE)
configure:1686: result: yes
configure:1909: checking for g++
configure:1925: found /usr/bin/g++
configure:1935: result: g++
configure:1951: checking for C++ compiler version
configure:1954: g++ --version </dev/null >&5
g++ (GCC) 3.2.3
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This line stood out to me:
g++: installation problem, cannot exec `as': No such file or directory
I get that when I try to do 'g++ test.cpp' as well. I tried this on my desktop(running Slackware 9.1 also) and it worked without a problem. I am completely stumped. I thought maybe I missed some package that I needed, so I reinstalled Slack on this computer and did a full install(I think atleast) and it still gives me this error. What is annoying me is that it works flawlessly on my desktop where I also have a full install.
I actually got it to work. I was missing the binutils package. I'm not quite sure why it wasn't installed, but I found this topic that pointed me in the right direction:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.