How to Fix: Slackware ./configure error
Error fixing freetds installation on Slackware 14.0 with ./configure error.
📋 Table of Contents
The error 'gcc: unrecognized command line option '-V'
gcc : fatal error: no input files
gcc: error: unrecognized command line option '-qversion'
gcc : fatal error: no input files
...
...
error: C compiler cannot create executables' occurs when the GCC compiler is not properly installed or configured on your Slackware 14.0 system.
This issue can be frustrating for users who are new to Slackware, as it prevents them from installing and using freetds. However, by following the steps outlined in this guide, you should be able to resolve the error and get back up and running.
🔍 Why This Happens
- The primary cause of this error is that the GCC compiler is not properly installed or configured on your system. This can happen if the GCC package was not installed during the initial installation of Slackware, or if the configuration options were not set correctly.
- Another possible reason for this error is a misconfiguration of the GCC compiler. This could be due to incorrect settings in the /etc/default/gcc file, or other issues with the system's configuration.
✅ Best Solutions to Fix It
Updating the GCC package
- Step 1: Update the Slackware package list by running the command 'upgradepkg --install-recommends slackware-current'. This will ensure that all packages, including GCC, are up to date.
- Step 2: Install the GCC package by running the command 'upgradepkg --install-recommends gcc'. This will update the GCC compiler and its dependencies.
- Step 3: Verify that the GCC compiler is installed correctly by checking the output of the command 'gcc -v' in a terminal. If everything is correct, you should see a version number and other information about the compiler.
Manually configuring the GCC compiler
- Step 1: Edit the /etc/default/gcc file to ensure that it is properly configured. You can do this by running the command 'nano /etc/default/gcc' in a terminal and making the necessary changes.
- Step 2: Set the CFLAGS and LDFLAGS variables to include the necessary options for GCC. For example, you could add the following lines to the end of the file: CFLAGS='-O2 -Wall' LDFLAGS='-L/usr/lib -Wl,-rpath,/usr/lib'. Save the changes and exit the editor.
💡 Conclusion
To resolve the error 'gcc: unrecognized command line option '-V'
gcc : fatal error: no input files
gcc: error: unrecognized command line option '-qversion'
gcc : fatal error: no input files
...
...
error: C compiler cannot create executables' on your Slackware 14.0 system, follow the steps outlined in this guide. By updating the GCC package or manually configuring it, you should be able to resolve the issue and get back up and running.
❓ Frequently Asked Questions
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Fix Pc crashes shortly after launching game (rainbow six siege). Compl
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: New PC build- no signal and no clue
Fix New PC build- no signal and no clue. Complete troubleshooting guid