現在、twitter、fb、instagramログインオプションを持つrailsアプリケーションをビルドしています。私は私のbash_profileのこの部分が間違っている推測しているbash_profileを入手するときに解析エラーが発生する
`(eval):1: parse error near `then' `
私は右トークンとすべてを入力されたが、私はソースbash_profileを行うとき、それは私に、このエラーを与えますか?
export PATH=/usr/local/bin:$PATH
export PATH=$HOME/.rbenv/bin:$PATH
eval "$(rbenv init -)"
どのように修正できますか?
私がヒット、 'rbenv initを - ' 私は、Bashのために、次の
export PATH="/Users/sugawara/.rbenv/shims:${PATH}"
export RBENV_SHELL=zsh
source '/usr/local/Cellar/rbenv/1.1.1/libexec/../completions/rbenv.zsh'
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" "[email protected]")";;
*)
command rbenv "$command" "[email protected]";;
esac
}
'rbenvのinit -'の出力を示してください、結局のところ、それがエラーの原因です。 – Socowi
@ソコウィ私はあなたの質問に答えを加えました!どうも! –
'bash'スクリプトから' zsh'ファイルを入手しています。これはおそらくエラーの原因になります。 – chepner