美文网首页
mac总是出现command not found

mac总是出现command not found

作者: 上弦同学 | 来源:发表于2019-01-28 16:44 被阅读0次
原因

可能是”.bash_profile”文件编辑有误。

我是在配置adb环境变量时,编辑.bash_profile文件出现错误,造成各种命令失效

解决方法
  1. 在命令中输入:
    export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin
    这样可让命令暂时可用

  2. 打开“.bash_profile”文件
    open .bash_profile

  3. 修改“.bash_profile”正确后,保存。

  4. 重新编译
    source .bash_profile

相关文章

网友评论

      本文标题:mac总是出现command not found

      本文链接:https://www.haomeiwen.com/subject/ponajqtx.html