新更新的mac os x 10.10.1上的rbenv错误

时间:2014-12-02 08:53:27

标签: ruby terminal rvm rbenv

嗨我是ruby和rails和终端的新手,我更新到mac os x 10.10 yosimite,当我打开终端时,这些错误开始出现

-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'

1 个答案:

答案 0 :(得分:1)

您的.bash_profile文件似乎在sdk/toolsif which处格式错误。我认为应该是sdk/tools; if which,或者只是在tools前面的if之后添加一个换行符。