rbenvインストールの際のエラー
rbenvのインストールする際に、
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
$ source ~/.bash_profile
の後、以下のエラーが発生。
-bash: eval: line 1: syntax error near unexpected token `('
-bash: eval: line 1: `“export PATH="/Users/xxxx/.rbenv/shims:${PATH}" >export RBENV_SHELL=bash source
'/usr/local/Cellar/rbenv/1.1.1/libexec/../completions/rbenv.bash' command >rbenv rehash 2>/dev/null rbenv() { local command command="$1" if [ "$#" ->gt 0 ]; then shift fi case "$command" in rehash|shell) eval "$(rbenv
"sh-$command" "$@")";; *) command rbenv "$command" "$@";; esac }”'
ご教授お願いいたします! ちなみに、
$ rbenv init -
を実行した結果は、
export PATH="/Users/xxxx/.rbenv/shims:${PATH}"
export RBENV_SHELL=bash
source '/usr/local/Cellar/rbenv/1.1.1/libexec/../completions/rbenv.bash'
command rbenv rehash 2>/dev/null
rbenv() {
local command
command="$1"
if [ "$#" -gt 0 ]; then
shift
fi
case "$command" in
rehash|shell)
eval "$(rbenv "sh-$command" "$@")";;
*)
command rbenv "$command" "$@";;
esac
}
となりました。