The command could not be located because '/usr/bin' is not included
来源:互联网 发布:nestopia mac 设置 编辑:程序博客网 时间:2024/05/23 12:03
用的是Ubuntu12.04。
为了把adb命令设置到环境变量中,我在~/.bashrc文件中加入了如下命令:
export PATH=/home/develop/android-sdks/platform-tools/
结果悲剧了.输入常用命令ls,cd ,,,都不行。连vi也不行。一律报错。The command could not be located because '/usr/bin' is not included in the PATH environment variable.clear: command not found.
看半天才知道忘加系统PATH的路径,所以系统工具命令都找不到。
可怎么把配置文件改过来呢,折腾了半天,发现很简单。直接用系统工具的全路径编辑配置文件。我用的是sudo vi /usr/bin/vi ~/.bashrc.
然后加入命令 export PATH=/home/develop/android-sdks/platform-tools/:$PATH。再重启终端就好了。
学到了两点:
1.系统命令找不到时,通常是路径不对,直接在命令行用全路径即可;
2.在设置环境变量时,尤其是linux系统中,你加入自己的环境变量,可还要附带上之前的变量。如最后加上:$PATH
为了把adb命令设置到环境变量中,我在~/.bashrc文件中加入了如下命令:
export PATH=/home/develop/android-sdks/platform-tools/
结果悲剧了.输入常用命令ls,cd ,,,都不行。连vi也不行。一律报错。The command could not be located because '/usr/bin' is not included in the PATH environment variable.clear: command not found.
看半天才知道忘加系统PATH的路径,所以系统工具命令都找不到。
可怎么把配置文件改过来呢,折腾了半天,发现很简单。直接用系统工具的全路径编辑配置文件。我用的是sudo vi /usr/bin/vi ~/.bashrc.
然后加入命令 export PATH=/home/develop/android-sdks/platform-tools/:$PATH。再重启终端就好了。
学到了两点:
1.系统命令找不到时,通常是路径不对,直接在命令行用全路径即可;
2.在设置环境变量时,尤其是linux系统中,你加入自己的环境变量,可还要附带上之前的变量。如最后加上:$PATH
- The command could not be located because '/usr/bin' is not included
- The command could not be located because '/usr/bin' is not included
- The command could not be located because '/usr/bin' is not included
- the command could not be located because '/bin' is not included in the path environment variable
- The command could not be located because '/sbin' is not included in the PATH environment variable
- 引用DLL打包出错”But the dll is not allowed to be included or could not be found.“
- Windows - could-not-be-started-because-the-hypervisor-is-not-running
- A definition for the symbol '<symbolName>' could not be located
- WARNING: The host 'localhost' could not be looked up with /usr/local/mysql//bin/resolveip
- Exclusive access could not be obtained because the database is in use
- 启动unity3d 提示“unity3d EditorWindow could not be loaded because the script is not found in the projec”
- Solution For "could not be located or a different control is assigned to the same ID after postback"
- the app xxx.app could not be added to your iTunes library because it is not a valid app
- XXX could not be redeployed because it could not be completely removed in the undeployment phase
- XXX could not be redeployed because it could not be completely removed in the un
- XXX could not be redeployed because it could not be completely removed in the un
- XXX could not be redeployed because it could not be completely removed in the undeployment phase
- ** could not be redeployed because it could not be completely removed in the undeployment phase
- 用JavaScript编写弹出遮罩层的原理分析及初步实现
- 9 个指导开发者快速编码/学习的网站推荐
- 服务器追加1对新硬盘并做RAID1
- perl将一个文件中的特定行写入到另一个文件中
- JDBC访问数据库的基本步骤(Oracle数据库为例)
- The command could not be located because '/usr/bin' is not included
- android wpa_supplicant 流程分析
- 中国剩余定理
- saf文件代码
- jQuery UI MultiSelect Widget的使用
- EA (UML) 核心功能
- 学习php第二天
- Python中的正则表达式(2)
- EL表达式与JSTL(C)标签