master@ubuntu:~/cmake-3.16.0$ cmake -bash: /usr/bin/cmake: No such file or directory
时间: 2023-08-28 14:06:04 浏览: 319
cmake-3.16.0-Linux-x86-64.tar.gz
This error message suggests that CMake is not installed on your system, or it is not installed in the expected location.
You can check if CMake is installed on your system using the command:
```
cmake --version
```
If CMake is not installed, you can install it using your system's package manager. For example, on Ubuntu, you can use the following command:
```
sudo apt-get install cmake
```
If CMake is already installed but not in the expected location, you can try adding the directory containing CMake to your PATH environment variable. For example, if CMake is installed in /opt/cmake/bin, you can add the following line to your ~/.bashrc file:
```
export PATH=/opt/cmake/bin:$PATH
```
After modifying your PATH, you will need to source the ~/.bashrc file or open a new terminal window for the changes to take effect.
阅读全文