How do I verify my C compiler is correctly installed and accessible after troubleshooting the "linker cc not found" error?

Question

Grade: Education Subject: Support
How do I verify my C compiler is correctly installed and accessible after troubleshooting the "linker cc not found" error?
Asked by:
122 Viewed 122 Answers

Answer (122)

Best Answer
(356)
After installing a C compiler, try running `gcc --version` (or `clang --version` or the respective command for your chosen compiler) in your terminal. If it displays the compiler's version information, then it's installed correctly and the PATH is likely configured properly. If you get a 'command not found' error, there is still a configuration problem.