Mac 报错:-bash: cmake: command not found
程序员文章站
2022-05-27 16:59:19
...
问题
解决
可能 1:未安装 cmake
测试:cmake --version
结果:-bash: cmake: command not found
解决:brew install cmake
可能 2:未添加环境变量
-
打开home 目录下的.bash_profile:
vim .bash_profile
-
添加以下代码 :
# Add Cmake Root to Path export CMAKE_ROOT=/Applications/CMake.app/Contents/bin/ export PATH=$CMAKE_ROOT:$PATH
-
使之立即生效:
source .bash_profile
上一篇: docker教程 安装docker
推荐阅读
-
linux 执行 javac 报错 javac: command not found
-
解决 bash: vue command not found
-
sudo service: command not found 报错的解决方法
-
linux下提示bash:command not found
-
-bash: mysqladmin: command not found问题解决
-
解决 React-Native mac 运行报错 error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build log
-
svn 没有killall命令的解决方法 -bash: killall: command not found
-
mac command not found: adb(mac电脑配置Android环境变量)
-
bash scp command not found的解决方法
-
mac安装appium时执行appium-doctor命令提示command not found: appium-doctor