我在Mac OSX 10.8.5上。我有rails和RVM设置。每次打开终端时,我都会遇到这个错误:
-bash: /Users/Justin/.bash_profile: line 2: syntax error near unexpected token `('
-bash: /Users/Justin/.bash_profile: line 2: `export PATH=/usr/local/bin:(...)'
这是.bash_profile
内的内容:
source ~/.rvm/scripts/rvm
export PATH=/usr/local/bin:(...)
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
我对Rails很新。尽管此错误消息似乎没有中断任何内容,但它非常烦人。如何编辑.bash_profile
以停止此错误消息?
答案 0 :(得分:1)
你应该改变这一行
export PATH=/usr/local/bin:(...)
到
export PATH=/usr/local/bin:$PATH
这会将/usr/local/bin
添加到您的PATH
变量中,这可能是您想要的。