2014-12-02 40 views
0

嗨我是個新手,Ruby和Rails終端和我更新到Mac OS X 10.10 yosimite和這些錯誤開始雨後春筍般冒出來,當我打開終端rbenv誤差x 10.10.1

-bash: /Users/marklacsamana/.bash_profile: line 4: syntax error near unexpected token `then' 
-bash: /Users/marklacsamana/.bash_profile: line 4: `export PATH=${PATH}:/Users/marklacsamana/Development/adt-bundle-mac-x86_64-20140702/sdk/platform-tools:/Users/marklacsamana/Development/adt-bundle-mac-x86_64-20140702/sdk/toolsif which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' 
+0

請在第4行顯示'.bash_profile'。 – 2014-12-02 09:51:50

回答

1

看起來您的.bash_profile文件格式錯誤,版本爲sdk/toolsif which。我認爲應該是sdk/tools; if which或在if之前在tools之後添加一個換行符。