mac pro 环境变量的配置 (当不存在 .bash_profile 文件的时候)
2014-04-28 17:11
585 查看
mac pro 环境变量的配置 (当不存在 .bash_profile 文件的时候)
1. 启动终端Terminal2. 进入当前用户的home目录
输入cd ~
3. 创建.bash_profile
输入touch .bash_profile
4. 编辑.bash_profile文件
输入open -e .bash_profile
因为是为了搭建Android开发环境,输入Android SDK下的tools目录:export PATH=${PATH}:/eclipse/android_sdk/tools
5. 保存文件,关闭.bash_profile
6. 更新刚配置的环境变量
输入source .bash_profile
7. 验证配置是否成功
输入android启动Android SDK and AVD Manager
截图
备注: 随着android 的升级 android 和 adb 命令 被放在了 不同的目录。。。 这个时候就需要配置多个路径了如下:
修改 .project_profile 文件内容为
export PATH=${PATH}:/wf/programfiles/android/tools $
export PATH=${PATH}:/wf/programfiles/android/platform-tools
相关文章推荐
- mac pro 环境变量的配置 (当不存在 .bash_profile 文件的时候)
- mac pro 环境变量的配置 (当不存在 .bash_profile 文件的时候)
- mac pro 环境变量的配置 (当不存在 .bash_profile 文件的时候)
- bash配置文件/etc/profile,/etc/bashrc,~/.bash_profile,~/.bashrc详解及修改PATH环境变量
- oracle11g问题:新建oracle用户后,在oracle用户下找不到.bash_profile文件;不能修改环境变量配置。
- Mac 全局变量 ~/.bash_profile 文件不存在的问题
- centos shell基础 alias 变量单引号 双引号 history 错误重定向 2>&1 jobs 环境变量 .bash_history source配置文件 nohup & 后台运行 cut,sort,wc ,uniq ,tee ,tr ,split, paste cat> 2.txt <<EOF 通配符 glob模式 发邮件命令mail 2015-4-8 第十二节课
- mac关于java .bash_profile环境变量配置的问题
- mac关于.bash_profile环境变量配置的问题
- Linux下修改.bash_profile文件后再次用CRT启动环境变量未生效的解决方法,oracle命令无法使用
- linux的环境变量文件enviroment 、profile、bashrc和.bashrc以及.bash_profile
- linux系统环境变量.bash_profile/bashrc文件
- [Shell]Bash变量:环境变量的配置文件和登录信息
- bash变量-数值运算与运算符/变量测试与内容替换/环境变量配置文件
- Linux下环境变量配置方法梳理(.bash_profile和.bashrc的区别)
- 使 .bash_profile 文件中环境变量马上生效的命令
- 使 .bash_profile 文件中环境变量马上生效的命令
- 环境配置文件 ① /etc/profile、② ~/.bash_profile、③ ~/.bashrc、④ /etc/bashrc
- bash环境(变量与bash配置文件)
- Linux中环境变量文件profile、bashrc、bash_profile之间的区别和联系