mac 环境变量配置

来源:互联网 发布:用淘宝返利卖家知道吗 编辑:程序博客网 时间:2024/06/10 16:53

1. 启动终端Terminal


2. 进入当前用户的home目录

    输入cd ~

3. 创建.bash_profile

    输入touch .bash_profile

4. 编辑.bash_profile文件

    输入open -e .bash_profile

.bash_profile 文件内容:

export ndkr9=/Users/YY/Desktop/android_sdk/android-ndk-r9d/ndk-build 
export PATH=${PATH}:${ndkr9}

5. 保存文件,关闭.bash_profile

6. 更新刚配置的环境变量

    输入source .bash_profile

0 0
原创粉丝点击