title: Installing GCC on macOS Catalina
body: <p>I am on macOS Catalina and trying to install GCC by following the instructions here:
  <a href="https://solarianprogrammer.com/2019/10/12/compiling-gcc-macos/" rel="noreferrer">https://solarianprogrammer.com/2019/10/12/compiling-gcc-macos/</a></p>
  
  <p>Everything seems to work fine until I try to configure. Then I get the following:</p>
  
  <pre><code>configure: error: cannot run C compiled programs.
  If you meant to cross compile, use `--host'.
  See `config.log' for more details
  </code></pre>
  
  <p>While trying to fix this I found the following:</p>
  
  <p><a href="https://stackoverflow.com/questions/53038856/macos-configure-error-cannot-run-c-compiled-programs">MacOS &quot;configure: error: cannot run C compiled programs&quot;</a></p>
  
  <p>However this answer requires going to the following directory:</p>
  
  <pre><code>/Library/Developer/CommandLineTools
  </code></pre>
  
  <p>The problem is I do not have CommandLineTools in /Library/Developer/ not even as a hidden file. Trying to fix this I found this</p>
  
  <p><a href="https://stackoverflow.com/questions/58348155/how-to-compile-gcc-on-macos-catalina">How to compile GCC on macOS Catalina?</a></p>
  
  <p>but there is now answer here and I do not have nix and don't want to mess with it as it appears to not be very compatible with macOS Catalina. So the question is how can I run the configure?</p>