gcc command not found
This error message indicates that the gcc compiler is not installed on your system, or it 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, you can use the following command:
sudo apt-get install gcc
On macOS, you can install the Xcode command-line tools, which includes the gcc compiler, by running the following command:
xcode-select --install
Once gcc is installed, you may need to add it to your system's PATH environment variable. You can do this by adding the following line to your ~/.bashrc or ~/.bash_profile file:
export PATH="$PATH:/usr/local/bin"
This assumes that gcc is installed in the /usr/local/bin directory. If it is installed elsewhere, you will need to modify the path accordingly.
原文地址: https://www.cveoy.top/t/topic/bTe5 著作权归作者所有。请勿转载和采集!