title: Install GCC on Mac OS high sierra
body: <p>I've already visited the following answer but my question is different.</p>
  
  <p><a href="https://stackoverflow.com/questions/21173518/install-gnu-gcc-on-mac">Install GNU GCC on mac</a></p>
  
  <p>Mac OS ships with Clang and somehow <code>/usr/bin/gcc</code> is linked to Clang tool I assume because of this line.</p>
  
  <pre><code>gcc
  </code></pre>
  
  <blockquote>
    <p>clang: error: no input files</p>
  </blockquote>
  
  <p>Any idea on how can I install <a href="https://gcc.gnu.org/" rel="nofollow noreferrer">https://gcc.gnu.org/</a> standalone on my system?</p>
  
  <pre><code>gcc --version
  </code></pre>
  
  <blockquote>
    <p>Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/c++/4.2.1</p>
    
    <p>Apple LLVM version 9.0.0 (clang-900.0.38)</p>
    
    <p>Target: x86_64-apple-darwin17.2.0</p>
    
    <p>Thread model: posix</p>
    
    <p>InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin</p>
  </blockquote>