centos下bash: XXX: command not found的解决方法
来源:互联网 发布:windows多线程互斥 编辑:程序博客网 时间:2024/05/14 17:42
最近想在centos下做Android项目构建,配置好jdk和Android sdk后,同时也在/etc/profile将java和Android的环境变量配置进去,但是却无法像windows 下一样,直接使用android update project命令。
出现情况如下:bash: android: command not found
此时,我们可以使用ln命令将android 添加到/usr/bin目录下,详细解决方法如下:
1.使用cd /usr/bin 进入到该目录
2.使用ln -s -f android sdk安装目录/tools/android命令,将android链接到该目录上。
3.完成。此时我们就可以在任意目录使用android命令啦。
所以,如果出现bash: ant: command not found等情况,均可以使用此方法尝试解决。
最后,附上linux ln命令的说明:ln是linux中又一个非常重要命令,它的功能是为某一个文件在另外一个位置建立一个同步的链接。
语法:
1.将某个文件链接到一个文件上 ln [-f | -n] [-s] SourceFile [TargetFile]
2.将一个或者多个文件链接到一个目录上ln [-f | -n] [-s] SourceFile ... TargetDirectory
0 0
- centos下bash: XXX: command not found的解决方法
- CentOS bash: lspci: command not found解决方法
- linux下 bash:command not found解决方法
- -bash xxx command not found
- 解决linux下"bash:shutdown:command not found"的解决方法
- -bash: pecl: command not found的解决方法
- -bash: pecl: command not found的解决方法
- bash: mail: command not found的解决方法
- bash scp command not found的解决方法
- 关于su下bash:xxx :command not found
- bash command not found解决方法
- bash:command not found解决方法
- bash:command not found解决方法
- Minimal 安装模式的centos -bash:***: command not found
- Centos提示-bash: make: command not found的解决办法
- Centos出现-bash: unzip: command not found的解决办法
- Centos命令行报bash:.....:command not found的解决办法
- Centos命令行报bash:.....:command not found的解决办法
- hdu 3555 Bomb
- c# int与byte[]转换
- 【android 权限】
- eclipse快速打开文件所在位置
- acm-uva445(水题)
- centos下bash: XXX: command not found的解决方法
- spring实战的rest笔记
- POJ 3041:Asteroids:最小点覆盖
- WebForm基础
- 微软欲推通用内核:一组代码PC手机Xbox通用
- Trees on the level
- linux 守护进程编写
- printf格式输出数字,位数不够前面补0,适用与输出编号
- DataTable数据转换为实体