GCC Not Found: Installation and Troubleshooting Guide
The error message 'gcc: command not found' indicates that the GCC compiler is not installed on your system or is not in your system's PATH.
To install GCC on Linux or macOS, you can use the package manager of your distribution. For example, on Ubuntu or Debian, use the following command:
sudo apt-get install gcc
On macOS, install the Xcode command-line tools (which include the GCC compiler) by running:
xcode-select --install
After installation, you might need to add GCC to your system's PATH environment variable. Add the following line to your ~/.bashrc or ~/.bash_profile file:
export PATH='$PATH:/usr/local/bin'
This assumes GCC is installed in the /usr/local/bin directory. If it's installed elsewhere, modify the path accordingly.
原文地址: https://www.cveoy.top/t/topic/nhvg 著作权归作者所有。请勿转载和采集!