How to Fix: configure: error: C compiler cannot create executables
Error configuring memcached on Lion OSX
📋 Table of Contents
The 'configure: error: C compiler cannot create executables' error occurs when the C compiler is unable to create executable files. This issue can be caused by a missing or corrupted GCC compiler, which is required for compiling C code.
🛠️ Step-by-Step Verified Fixes
Method 1: Install Xcode and Update the Command Line Tools
- Step 1: Open the App Store and download and install Xcode.
- Step 2: Once installed, open Terminal and run the command
sudo xcodesign --verifyto verify that the GCC compiler is working correctly.
Method 2: Install Homebrew and Update the GCC Compiler
- Step 1: Install Homebrew by running
/usr/bin/ruby -e 'install App::Install, 'install' => -> { app = App.install; app.install}'in Terminal. - Step 2: Once installed, run
brew install gccto update the GCC compiler.
💡 Conclusion
By following these steps, you should be able to resolve the 'configure: error: C compiler cannot create executables' issue and successfully install memcached on Lion OSX.
❓ 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