【问题标题】:rbenv error on newly updated mac os x 10.10.1新更新的 mac os x 10.10.1 上的 rbenv 错误
【发布时间】:2015-01-30 10:58:39
【问题描述】:

嗨,我是 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'

【问题讨论】:

  • 请在第 4 行显示.bash_profile

标签: ruby terminal rvm rbenv


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-11-23
    • 2016-08-15
    • 1970-01-01
    • 2012-04-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-12
    相关资源
    最近更新 更多