開發Android的環境要重新在Mac上搭建,結果在配置環境變量時找不到.bash_profile文件。查過很多資料解決方案都很籠統,結果還是在英文網站上找到解決方法。 1. 啟動終端Terminal 2. 進入當前用戶的home目錄 ...
. 啟動終端Terminal . 進入當前用戶的home目錄 輸入cd . 創建.bash profile 輸入touch .bash profile . 編輯.bash profile文件 輸入open e .bash profile 因為是為了搭建Android開發環境,輸入Android SDK下的tools目錄:export PATH PATH : eclipse android sdk ...
2014-05-02 11:32 0 2294 推薦指數:
開發Android的環境要重新在Mac上搭建,結果在配置環境變量時找不到.bash_profile文件。查過很多資料解決方案都很籠統,結果還是在英文網站上找到解決方法。 1. 啟動終端Terminal 2. 進入當前用戶的home目錄 ...
touch ~/.bash_profile; // 將目錄跳轉到.bash_profile這個文件夾 open -t ~/.bash_profile //打開.bash_profile文件 這時候會彈出一個新的窗口輸入 export PATH=$PATH:/Users/XXXXX ...
一般在Mac上配置環境變量時經常要創建、編輯 .bash_profile文件。 ...
1. 啟動終端Terminal 2. 進入當前用戶的home目錄 輸入cd ~ 3. 創建.bash_profile 輸入touch .bash_profile 4. 編輯.bash_profile文件 輸入open .bash_profile ...
1、打開terminal(終端) 2、cd ~ ( 進入當前用戶的home目錄) 3、open .bash_profile (打開.bash_profile文件,如果文件不存在就 創建文件:touch .bash_profile 編輯文件:open -e bash_profile ...
說說配置環境變量的方法: vim ~/.bash_profile 進入配置文件 添加路徑例如: PATH=$PATH:\/Users/linyue/mywork/script:\ 保存后退出,source ~/.bash_profile,執行生效的指令 由於我每次關閉 ...
說說配置環境變量的方法: vim ~/.bash_profile 進入配置文件 添加路徑例如: PATH=$PATH:\/Users/linyue/mywork/script:\ 保存后退出,source ~/.bash_profile,執行生效的指令 由於我每次關閉 ...
1、打開Terminal(終端) 2、輸入:vi ~/.bash_profile 3、設置PATH:export PATH=/mongodb/bin:$PATH 4、輸入::wq //保存並退出vi 5、修改立即生效:source ~/.bash_profile ...