【发布时间】:2013-02-03 05:37:12
【问题描述】:
我已经关注了thread 并关注了 Linuxios 的回答,一切正常,但后来我明白了
-bash: export: `[[': not a valid identifier
-bash: export: `-s': not a valid identifier
-bash: export: `/Users/duaneadam/.rvm/scripts/rvm': not a valid identifier
-bash: export: `]]': not a valid identifier
所以,我通过终端从 .bash__profile 中删除了。
export PATH=$PATH:/usr/local/git/bin/ [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
.. 认为代码行是问题所在,但之后我得到的更糟。由于某些原因.. Ruby 没有安装.. 再次。 因此,我重新添加了代码行并尝试重新启动/重新启动我的 Mac,但问题仍然存在。 截图:
.bash_profile: 请问解决方法?我什至尝试使用他的方法重新安装。 天哪,这很难,也许 Ruby on Rails 不只是适合我。
【问题讨论】:
-
确保从 xcode 中或作为独立安装安装命令行工具。
-
请查看awesome tutorial by Moncef Belyamani,其中包含在 Mac 上设置 Git、RVM 和 Ruby 的分步说明。最近,当我尝试在新的 Mac 上设置我的开发环境时,它变得轻而易举。
标签: ruby-on-rails ruby macos