/usr/bin/cmake: Command not found
时间: 2023-08-11 21:05:36 浏览: 59
The error message "/usr/bin/cmake: Command not found" indicates that the CMake command-line tool is not installed or not accessible in your system.
To resolve this issue, you can try the following steps:
1. Check if CMake is already installed by running the command "cmake --version" in your terminal. If it is installed, it should display the version number. If not, proceed to the next step.
2. Install CMake using a package manager appropriate for your operating system. For example, on Ubuntu or Debian-based systems, you can use the following command to install CMake:
```
sudo apt-get install cmake
```
On macOS with Homebrew, you can use:
```
brew install cmake
```
On Windows, you can download the CMake installer from the official CMake website and follow the installation instructions.
3. Once CMake is installed, verify that it is properly added to the system's PATH environment variable. You can do this by running the command "cmake --version" again in your terminal. If it still does not work, you may need to manually add the CMake executable path to your system's PATH variable.
If you encounter any issues during the installation or need further assistance, please provide more details about your operating system and setup.