configure: error: C compiler cannot create executables
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.
configure: error: C compiler cannot create executables
I am trying to install clamav 0.95.2 from slackBuilds on my slack64 13 box and I get this error when I try to install it:
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/tmp/SBo/clamav-0.95.2':
configure: error: C compiler cannot create executables
See `config.log' for more details.
I checked the log and found:
configure:3326: checking for gcc
configure:3342: found /usr/bin/gcc
configure:3353: result: gcc
configure:3585: checking for C compiler version
configure:3593: gcc --version >&5
gcc (GCC) 4.3.3
The version of GCC I have is 4.3.3 and I'm guessing in the config it is looking for version 5?
I couldn't find where to change this or if I need to for a proper install. Any help would be greatly appreciated, thanks.
In order to compile ClamAV (or use other SlackBuild scripts from http://slackbuilds.org) you do not have to install 32-bit Multilib compatibility at all.
Just set the value of the ARCH variable in the SlackBuild script to "x86_64".
The error you describe is typical of a compilation effort where the script has ARCH incorrectly set to "i486".
In order to compile ClamAV (or use other SlackBuild scripts from http://slackbuilds.org) you do not have to install 32-bit Multilib compatibility at all.
Just set the value of the ARCH variable in the SlackBuild script to "x86_64".
The error you describe is typical of a compilation effort where the script has ARCH incorrectly set to "i486".
In order to compile ClamAV (or use other SlackBuild scripts from http://slackbuilds.org) you do not have to install 32-bit Multilib compatibility at all.
Just set the value of the ARCH variable in the SlackBuild script to "x86_64".
The error you describe is typical of a compilation effort where the script has ARCH incorrectly set to "i486".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.