를 설치 한 후 나는 설치 BASH에서 다음 명령을 실행 RVM :배쉬 예기치 않은 종료 RVM
이제brew install gnupg gnupg2
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
\curl -sSL https://get.rvm.io | bash
, 내 터미널을 열 때, 나는 다음과 같은 오류 메시지가 나타납니다
-bash: eval: line 19: syntax error: unexpected end of file
을
export PATH=/usr/local/bin:$PATH
eval "$(rbenv init -)i"
alias sbl='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'
#changes prompt to be colorized and rearranges prompt to be "[email protected]:cwd $"
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
#enable command line colors, and define colors for the ‘ls’ command
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
#flags -G colorizes output, -h makes sizes human readable, and -F throws a/after a directory
alias ls='ls -GFh'
#Need to add below after 'brew install git bash-completion'
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
누군가가 오류의 원인을 지적 할 수있다 : 여기
내 .bash_profile에인가? 나는 BASH 프로그래밍에 익숙하지 않다. RVM이 작동 중입니다.
당신이 길잃은 "나는"두 번째 줄의 끝이처럼 나에게 보이는
'rbenv init -'는 무엇을 반환합니까? (나는 그것이 문제가 아닐 것이라고 생각하고있다.) 마지막 줄을 주석 처리한다면 문제는 사라지나요? 마지막 줄을 직접 실행하면 오류가 발생합니까? –
'rbenv init -'는 다음을 반환합니다 : 'export PATH = "/ Users/pc3sq/.rbenv/shims : $ {PATH}" 소스 "/usr/local/Cellar/rbenv/0.4.0/libexec/ ../completions/rbenv.bash " rbenv rehash 2>/dev/null rbenv() { typeset 명령 명령"$ 1 " ["$ # "-gt 0]; then shift fi rehash | shell에서 "$ command"case eval'rbenv "sh- $ command" "$ @"';; *) 명령 rbenv "$ command" "$ @";; esac }' 마지막 줄을 주석 처리하고 터미널을 다시 시작하면 여전히 19 번째 줄에 같은 오류가 반환됩니다. bash_profile의 마지막 줄을 터미널 자체에 입력하면 오류가 없습니다. – PC3SQ