1
當我設置在.bash_profile
文件中的環境變量,然後重新啓動shell
我收到以下錯誤:的Rails的Ruby的shell環境變量錯誤
Last login: Sat Aug 15 20:16:25 on ttys000
-bash: /Users/xxxxxxxxx/.bash_profile: line 7: unexpected EOF while looking for matching `"'
-bash: /Users/xxxxxxxx/.bash_profile: line 10: syntax error: unexpected end of file
我.bash_profile
文件看起來像這樣:
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export GMAIL_USERNAME=「[email protected]」
export GMAIL_PASSWORD=「xxxxxx」
export MAILCHIMP_API_KEY=「xxxxxxxxxxxxxxxxxxxxxx」
export MAILCHIMP_LIST_ID=「xxxxxxxxxx」
export OWNER_EMAIL=「[email protected]」
ricke2005,你試過我的解決方案嗎?這應該解決你的問題。如果不是,請告訴我! –
KM,剛剛嘗試過你的建議,......它工作過!謝謝。我不明白這兩個符號之間的區別。你可以解釋嗎。 – ricke2005