嗨我是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'
答案 0 :(得分:1)
您的.bash_profile
文件似乎在sdk/toolsif which
处格式错误。我认为应该是sdk/tools; if which
,或者只是在tools
前面的if
之后添加一个换行符。