I download the gcc, use brew install gcc
but it said the gcc did not linked.
how to link the gcc? or what should I do?
How to link gcc? gcc-7.1.0 already installed, it’s just not linked
gcchomebrew
Related Question
- GCC 4.7 (via brew) keeps including from “/usr/include/c++/4.2.1”
- MacOS – GCC : Command not found
- Homebrew: how to switch between GCC versions `gcc49` and `gcc`
- MacOS – brew not linking gcc after install
- Using Homebrew gcc Over Clang – How to Configure on macOS
- Homebrew – Link GCC on Mojave Operating System
- How to Check Application Version Installed with Homebrew on Mac
Best Answer
When you install gcc with :
it should be automatically linked. But, if for some reasons, it's not. You can link it manually with :
The command :
gives also some valuable information :