こんにちは。よろしくお願いします。
rbenv
をgitからクローンし、ドキュメントに書いてあるようにパスを設定してeval "$(rbenv init -)"
これを.bashrc
に追加したんですが、シェルを再起動すると以下のようなメッセージが出てしまいます。どう対応すればよいでしょうか。
OS: Linux alice1017 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
エラー
```bash: export: '/home/username/.rbenv/libexec/../completions/rbenv.bash'': not a valid identifier bash: export:
2>/dev/null': not a valid identifier
bash: export: rbenv()': not a valid identifier bash: export:
{': not a valid identifier
bash: export: [': not a valid identifier bash: export:
"$#"': not a valid identifier
bash: export: -gt': not a valid identifier bash: export:
0': not a valid identifier
bash: export: ];': not a valid identifier bash: export:
"$command"': not a valid identifier
bash: export: rehash|shell)': not a valid identifier bash: export:
"rbenv': not a valid identifier bash: export:
"sh-$command"': not a valid identifier
bash: export: "$@"
";;': not a valid identifier
bash: export: *)': not a valid identifier bash: export:
"$command"': not a valid identifier
bash: export: "$@";;': not a valid identifier bash: export:
}': not a valid identifier
.bashrc
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。